WIP: Add support for multiple browsers, logging skipped, and grouping by test suite #2
+59
−16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a few features
Support for multiple browsers
If you run a
testem
test with multiple launchers, this library currently creates a valid file, but GitLab has a limitation where it can only handle one testcase for eachclassname
andname
combination. So currently, GitLab only displays the result for one of the launchers. This patch does two things to address this. First, test results are broken up into separate test suites based on launcher. Next, we populate the launcher name in theclassname
attribute, so that the same test in two separate launchers are no longer seen as duplicates.Skipped tests are included in results
This patch starts allowing for the recording of skipped tests, while marking them as skipped and keeping track of the count for parent elements. This allows for proper counts of tests, skips, failures and successes.
console methods are recorded
Right now GitLab doesn't support displaying it, but this patch now records all console method calls into the
system-out
elementmodule identification
For some testers like
QUnit
,testem
prepends the module name to the test name, separating with a colon (:
) This will separate the values by the colon, moving the module name to theclassname
attribute