-
Notifications
You must be signed in to change notification settings - Fork 1
/
config-ex3.yml
46 lines (46 loc) · 1.54 KB
/
config-ex3.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# https://docs.saucelabs.com/web-apps/automated-testing/cypress/
# https://docs.saucelabs.com/web-apps/automated-testing/cypress/yaml/v1/
apiVersion: v1
kind: cypress
sauce:
region: eu-central-1 # or us-west-1
# combined with the shard:concurrency setting
concurrency: 75
metadata:
tags:
- cypress
- cross-browser
build: "config-ex3 $CURRENT_TIME"
cypress:
version: package.json
configFile: "cypress.config.js" # We determine related files based on the location of the config file.
# Controls what files are available in the context of a test run (unless explicitly excluded by .sauceignore).
rootDir: ./
suites:
# Chrome
- name: "Swag Labs Shard Tests Chrome"
browser: "chrome"
platformName: "Windows 10"
screenResolution: "1400x1050"
shard: spec
config:
specPattern: [ "cypress/e2e/**/login.*", cypress/e2e/**/swag.* ]
excludeSpecPattern: [ "cypress/e2e/**/login.failed.cy.js" ]
# Firefox
- name: "Swag Labs Shard Tests Firefox"
browser: "firefox"
platformName: "Windows 10"
screenResolution: "1400x1050"
shard: spec
config:
specPattern: [ "cypress/e2e/**/login.*", cypress/e2e/**/swag.* ]
excludeSpecPattern: [ "cypress/e2e/**/login.failed.cy.js" ]
# MicrosoftEdge
- name: "Swag Labs Shard Tests MicrosoftEdge"
browser: "microsoftedge"
platformName: "Windows 10"
screenResolution: "1400x1050"
shard: spec
config:
specPattern: [ "cypress/e2e/**/login.*", cypress/e2e/**/swag.* ]
excludeSpecPattern: [ "cypress/e2e/**/login.failed.cy.js" ]