Skip to content

Commit 47914da

Browse files
committed
Test: Install integration versions in a tmpdir and add logging
Make the "npm run test-versions" script (integration/adapters-run.js) more robust by installing packages in a temporary directory entirely separate from the repository's working directory. Also capture the output of the test runs in a file so that one can easily inspect and find out why a version is failing. This can then be used to report issues upstream (if it's a new version), or to fix something on our end of it is genuine, or to document it in failing-versions.js if it is a known issue with a past release. - qunitjs: Make the list of old versions that are failing complete and document why they fail. - jasmine: Version 2.5.2 and later failed due to a default reporter killing killing the process (again). This needs to be fixed on our side by clearing the default reporters. Fixed as part of this commit since it didn't need a change to the adapter. Version 3.0 and later failed due to randomized order. Disable in our test. - mocha: Version 8.0 and later are currently failing due to skipped tests not being recognised correctly. To be followed up on in a later commit as it looks like that would require a source change to the adapter.
1 parent 5e7f7cc commit 47914da

File tree

7 files changed

+1312
-235
lines changed

7 files changed

+1312
-235
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/node_modules
2+
/log
23
/*.log

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ runner.on('runEnd', function (globalSuite) {
7878
JsReporters.TapReporter.init(runner);
7979
```
8080

81+
### Adapter support
82+
83+
| Testing framework | Supported | Last checked | Unresolved
84+
|--|--|--|--
85+
| QUnit | 1.20+ | ✅ `[email protected]` (Sep 2020) | –
86+
| Jasmine | 2.1+ | ✅ `[email protected]` (Jul 2020) | –
87+
| Mocha | 1.18+ | ✅ `[email protected]` (May 2020) | ⚠️ `>= [email protected]` ([issue #116](https://github.com/js-reporters/js-reporters/issues/116))
88+
89+
See also [past issues](test/versions/failing-versions.js).
90+
8191
### API
8292

8393
**autoRegister()**

0 commit comments

Comments
 (0)