File tree 8 files changed +129
-4
lines changed
tests/fixtures/environments2
8 files changed +129
-4
lines changed Original file line number Diff line number Diff line change
1
+ Feature : Environment
2
+ As a programmer, I want to be able add my environments vars to parallel workers.
3
+
4
+ Scenario : I have only configured 4 environments for my poll and only should it start 4 Workers
5
+ Given I create empty json file in "test.json"
6
+ And I run "behat --config tests/fixtures/environments2/behat.yml.dist --parallel-feature 8"
7
+ Then it should pass
8
+ And the output should contain:
9
+ """
10
+ Starting parallel scenario tests with 8 workers
11
+ """
12
+ And the output should contain:
13
+ """
14
+ Started poll with only 4 workers
15
+ """
16
+ And the ordered unique data of the "test.json" json file should match:
17
+ | 0 |
18
+ | 1 |
19
+ | 2 |
20
+ | 3 |
21
+
22
+
Original file line number Diff line number Diff line change
1
+ Feature : Fail On Undefined step
2
+ As a programmer, I want my tests to fail if there are any undefined steps
3
+ Scenario : Test behat tests with undefined step. Test will fail.
4
+ Given I run "behat --config tests/fixtures/undefined-steps/behat.yml.dist --parallel-feature 20"
5
+ Then it should fail with:
6
+ """
7
+ Tests has undefined steps!
8
+ """
9
+ And I should see progress bar
Original file line number Diff line number Diff line change 1
1
Feature : Parallel-Feature
2
2
As a programmer, I want to able test my tests in parallel-feature mode.
3
3
And if test will fail then i want see my errors.
4
- Scenario : Test behat tests with successful result and --parallel-feature option
5
- Given I run "behat --config tests/fixtures/successful/behat.yml.dist --parallel-feature 20"
6
- Then it should pass
7
- And I should see progress bar
8
4
Scenario : Test behat tests with successful result and --parallel-feature option
9
5
Given I run "behat --config tests/fixtures/successful/behat.yml.dist --parallel-feature 20"
10
6
Then it should pass
Original file line number Diff line number Diff line change
1
+ default:
2
+ translation:
3
+ locale: en
4
+ suites:
5
+ suite01:
6
+ paths:
7
+ - '%paths.base%/suite01'
8
+ contexts:
9
+ - DMarynicz\Tests\Behat\Context\EnvironmentContext
10
+ suite02:
11
+ paths:
12
+ - '%paths.base%/suite02'
13
+ contexts:
14
+ - DMarynicz\Tests\Behat\Context\EnvironmentContext
15
+ extensions:
16
+ DMarynicz\BehatParallelExtension\Extension:
17
+ environments:
18
+ -
19
+ WORKER_ID: 0
20
+ -
21
+ WORKER_ID: 1
22
+ -
23
+ WORKER_ID: 2
24
+ -
25
+ WORKER_ID: 3
26
+
Original file line number Diff line number Diff line change
1
+ Feature : Save environment var to json file
2
+
3
+ Scenario : test 1
4
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
5
+ Scenario : test 2
6
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
7
+ Scenario : test 3
8
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
9
+ Scenario : test 4
10
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
11
+ Scenario : test 5
12
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
13
+ Scenario : test 6
14
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
15
+ Scenario : test 7
16
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
17
+ Scenario : test 8
18
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
Original file line number Diff line number Diff line change
1
+ Feature : Save environment var to json file
2
+
3
+ Scenario : test 1
4
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
5
+ Scenario : test 2
6
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
7
+ Scenario : test 3
8
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
9
+ Scenario : test 4
10
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
11
+ Scenario : test 5
12
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
13
+ Scenario : test 6
14
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
15
+ Scenario : test 7
16
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
17
+ Scenario : test 8
18
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
Original file line number Diff line number Diff line change
1
+ Feature : Save environment var to json file
2
+
3
+ Scenario : test 1
4
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
5
+ Scenario : test 2
6
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
7
+ Scenario : test 3
8
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
9
+ Scenario : test 4
10
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
11
+ Scenario : test 5
12
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
13
+ Scenario : test 6
14
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
15
+ Scenario : test 7
16
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
17
+ Scenario : test 8
18
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
Original file line number Diff line number Diff line change
1
+ Feature : Save environment var to json file
2
+
3
+ Scenario : test 1
4
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
5
+ Scenario : test 2
6
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
7
+ Scenario : test 3
8
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
9
+ Scenario : test 4
10
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
11
+ Scenario : test 5
12
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
13
+ Scenario : test 6
14
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
15
+ Scenario : test 7
16
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
17
+ Scenario : test 8
18
+ Given I append the value of the environment variable "WORKER_ID" variable to json "test.json"
You can’t perform that action at this time.
0 commit comments