-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig-ex4.yml
46 lines (46 loc) · 1.6 KB
/
config-ex4.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: 5
metadata:
tags:
- cypress
- cross-version
build: "config-ex4 $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:
- name: "Swag Labs Shard Tests Chrome latest"
browser: "chrome"
browserVersion: "latest"
platformName: "Windows 10"
screenResolution: "1400x1050"
# This will tell the saucectl runner to shard/divide the tests
# over multiple instances, make sure you have the `concurrency`
# set to higher than one
shard: spec
config:
specPattern: [ "cypress/e2e/saucedemo/**/*.*" ] # Cypress native glob support.
- name: "Swag Labs Shard Tests Chrome latest-1"
browser: "chrome"
browserVersion: "latest-1"
platformName: "Windows 10"
screenResolution: "1400x1050"
shard: spec
config:
specPattern: [ "cypress/e2e/saucedemo/**/*.*" ] # Cypress native glob support.
- name: "Swag Labs chrome latest-2"
browser: "chrome"
browserVersion: "latest-2"
platformName: "Windows 10"
screenResolution: "1400x1050"
shard: spec
config:
specPattern: [ "cypress/e2e/saucedemo/**/*.*" ] # Cypress native glob support.