Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Sync various test suites and add enforce with structural test #1646

Merged
merged 4 commits into from
Aug 9, 2021

Conversation

Krinkle
Copy link
Member

@Krinkle Krinkle commented Aug 9, 2021

Details in separate commit messages.

Ref #1511.

Krinkle added 2 commits August 9, 2021 00:20
* This additional entry point is no longer needed now.
  It was already redundant with test/index.html.

* Rename the file to match the `QUnit.module()` call.

* Include it in the test run for mozjs
  (previously it was only in index.html and test-on-node).

Ref qunitjs#1511.
The file was mixed in the main/ directory, but not actually
used by any of the main test runs (index.html, test-on-node, mozjs).

Ref qunitjs#1511.
@Krinkle Krinkle requested a review from smcclure15 August 9, 2021 01:26
Copy link
Member

@smcclure15 smcclure15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great - was certainly overdue for a re-org.
Thanks for the succinct and separable commits!

test/headless.html Outdated Show resolved Hide resolved
Krinkle added 2 commits August 9, 2021 17:32
Several of the HTML test suites were previously omitted from CI,
as they either couldn't pass on PhantomJS, or were simply forgotten.

* Add test/headless.html. Also updated to use `QUnit.on()`, and to hide
  debug messages when run in CI to avoid adding this noise.
* Add test/module-filter.html
* Add test/performance-mark.html. Ref qunitjs#1319.
* Add test/webWorker.html. Ref qunitjs#1171.
* Remove test/each.html. Duplicate of test/index.html.
* Remove test/stack-errors.html. Redundant with other tests for "noglobals"
  and "onUncaughtError" outside test context etc.
* Improve test/sandboxed-iframe.html, which was passing CI
  but failing manually, due to undefined `__grunt_contrib_qunit__`. We
  now define a fallback locally to ease debugging.

Added to test-on-node: test/module-skip.js, test/module-todo.js. These
were disabled due to use of hacky `QUnit.done()`, but that was recently
fixed with 78bda44.

Also add various main tests to test/webWorker.js, which had not been
updated in a while. The next commit will add a meta CLI test that
ensures that these are all in sync to avoid staleness in the future.

Ref qunitjs#1511.
Bump cli/eslintrc from es2017 to es2018 to allow use of the RegExp `s`
flag (dotAll). This is supported since Node 8+.

Ref qunitjs#1511.
@Krinkle Krinkle merged commit 159f932 into qunitjs:main Aug 9, 2021
@Krinkle Krinkle deleted the test-cleanup branch August 9, 2021 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants