-
Notifications
You must be signed in to change notification settings - Fork 139
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 #705 from recurly/unit-split-ie
Adds unit test suite partitioning for IE 11
- Loading branch information
Showing
12 changed files
with
19,765 additions
and
21,201 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -61,13 +61,13 @@ | |
"babel-eslint": "^10.0.3", | ||
"babel-loader": "^8.2.1", | ||
"babel-plugin-istanbul": "^6.0.0", | ||
"chromedriver": "^85.0.1", | ||
"chromedriver": "^89.0.0", | ||
"combinations": "^1.0.0", | ||
"coveralls": "^3.1.0", | ||
"css-loader": "^3.6.0", | ||
"current-git-branch": "^1.1.0", | ||
"dtslint": "^3.7.0", | ||
"electron": "^10.1.5", | ||
"electron": "^12.2.3", | ||
"eslint": "^6.8.0", | ||
"geckodriver": "^1.20.0", | ||
"glob": "^7.1.6", | ||
|
@@ -76,7 +76,8 @@ | |
"karma-browserstack-launcher": "^1.6.0", | ||
"karma-chrome-launcher": "^3.1.0", | ||
"karma-coverage": "^2.0.3", | ||
"karma-electron": "^6.3.1", | ||
"karma-electron": "^7.1.0", | ||
"karma-env-preprocessor": "^0.1.1", | ||
"karma-firefox-launcher": "^1.3.0", | ||
"karma-ios-simulator-launcher": "git+https://[email protected]/chrissrogers/karma-ios-simulator-launcher.git", | ||
"karma-mocha": "^2.0.1", | ||
|
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,25 @@ | ||
/** | ||
* Overrides `it` if we're partitioning the test suite | ||
* | ||
* to invoke, add the env variable SUITE_PARTITION. example: | ||
* | ||
* BROWSER=ChromeHeadless SUITE_PARTITION=A make test-unit | ||
*/ | ||
|
||
function overrideItForPartitions () { | ||
const origIt = it; | ||
const partition = mod => SUITE_PARTITION === 'A' ? mod : !mod; | ||
let count = 0; | ||
|
||
it = function (...args) { | ||
if (typeof args[args.length-1] === 'function' && partition(count++ % 2)) { | ||
return origIt.skip(...args); | ||
} | ||
return origIt(...args); | ||
}; | ||
|
||
it.skip = origIt.skip; | ||
} | ||
|
||
const { SUITE_PARTITION } = window.__env__; | ||
if (SUITE_PARTITION) overrideItForPartitions(); |
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