-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #963 from tasha-urbancic/feature/preserve-test-name
Add preserveTestName CLI flag to remove partition and browser
- Loading branch information
Showing
9 changed files
with
256 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Preserve Test Name | ||
|
||
When using `--split` and/or `--load-balance` the output will look something like: | ||
|
||
```bash | ||
# ember exam --split=2 --partition=1 --parallel=3 --load-balance | ||
ok 1 Chrome 66.0 - Exam Partition 1 - browser Id 1 - some test | ||
ok 2 Chrome 66.0 - Exam Partition 1 - browser Id 2 - another test | ||
ok 3 Chrome 66.0 - Exam Partition 1 - browser Id 3 - some the other test | ||
``` | ||
However, if you change the amount of parallelization, or randomize accross partitions, the output will change for the same test, which may be an issue if you are tracking test insights over time. | ||
|
||
```bash | ||
# ember exam --split=2 --partition=1 --parallel=2 --load-balance | ||
ok 1 Chrome 66.0 - Exam Partition 1 - browser Id 2 - some test | ||
ok 2 Chrome 66.0 - Exam Partition 1 - browser Id 1 - another test | ||
ok 3 Chrome 66.0 - Exam Partition 1 - browser Id 2 - some the other test | ||
``` | ||
You can add `--preserve-test-name` to remove the dynamic segments of the output (partition and browser) to ensure the output test names are always the same. | ||
|
||
```bash | ||
# ember exam --split=2 --partition=1 --parallel=3 --load-balance --preserve-test-name | ||
ok 1 Chrome 66.0 - some test | ||
ok 2 Chrome 66.0 - another test | ||
ok 3 Chrome 66.0 - some the other test | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.