-
Notifications
You must be signed in to change notification settings - Fork 776
Closed
Labels
Category: TestsType: EnhancementNew idea or feature request.New idea or feature request.help welcome
Description
We currently have many ways we run unit tests:
- In a browser (via Headless Chromium, grunt-contrib-qunit).
- In a browser with a Web Worker (via Headless Chromium, grunt-contrib-qunit).
- In Node.js, plainly (via a custom Grunt task).
- In Node.js using the QUnit CLI.
- In SpiderMonkey (via mozjs).
Outcome for this issue:
- To the extent possible, have the same these three test runners automatically share a common base list of test suites. Or, have build script that can keep them in sync. Or, have a small test that just tells us whether they are in sync and add that to
npm test. - In the repository, organise tests such that it is easy to spot which tests are common, which specific to browser, and which specific to CLI. Perhaps by giving those three use cases their own subdirectory, or by a mark in file name, or file comment.
For later:
- Walk through the tests that don't run in all three and determine whether there is a good reason for it, and document that reason. And if there isn't one, have it run in all three. From a quick check it seems that a big chunk of tests only ever run in the browser and in plain Node. The CLI test run seems limited to only CLI-specific stuff mostly. It'd be good to have the bulk of the tests run through there as well.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Category: TestsType: EnhancementNew idea or feature request.New idea or feature request.help welcome