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

chore: misc testing fixes #2930

Merged
merged 6 commits into from Oct 28, 2023
Merged

chore: misc testing fixes #2930

merged 6 commits into from Oct 28, 2023

Conversation

lukekarrys
Copy link
Member

@lukekarrys lukekarrys commented Oct 28, 2023

Note

This PR is stacked on #2925

This PR does the following:

  • Separates npm run lint into it's own workflow job.
  • Removes FAST_TEST in favor of FULL_TEST which now defaults to off for all test runs in CI except for one per matrix.os. This should speed up tests while still getting the full test suite running on each platform.
  • Use an environ NODE_GYP_NULL_LOGGER to suppress logs during tests instead of manually setting log.logger.stream = null at the top of tests. This environ is then removed from the options passed to execFile so those tests can collect from stdout.
  • Removes the custom mocha reporter. Now that stdout is suppressed in tests, the default mocha reports no longer shows extra logs and newlines.
  • No longer have different test exports for any lib/ files. All tested functions are either exported directly from their own files. This involved moving some helper functions from a command file to their own file.

@lukekarrys lukekarrys force-pushed the lk/builtin-mocha-reporter branch 2 times, most recently from 14e0a4d to 25a2169 Compare October 28, 2023 05:55
@lukekarrys lukekarrys changed the title fix: remove custom test reporter chore: cleanup tests Oct 28, 2023
@lukekarrys lukekarrys changed the title chore: cleanup tests chore: misc testing fixes Oct 28, 2023
@lukekarrys lukekarrys force-pushed the lk/builtin-mocha-reporter branch 2 times, most recently from e95f094 to f1a54e8 Compare October 28, 2023 06:36
@lukekarrys lukekarrys added this to the v10.0.0 milestone Oct 28, 2023
@lukekarrys lukekarrys marked this pull request as ready for review October 28, 2023 06:57
Base automatically changed from lk/use-es6-classes to main October 28, 2023 16:29
@lukekarrys lukekarrys merged commit 4e493d4 into main Oct 28, 2023
32 checks passed
@lukekarrys lukekarrys deleted the lk/builtin-mocha-reporter branch October 28, 2023 21:13
lukekarrys added a commit that referenced this pull request Oct 28, 2023
* chore: misc test fixes

* Sort test runs by os first

* Use cross-env for test env var

* Try sorting matrix params

* Make FAST_TEST the default and rename to FULL_TEST

* Separate helper functions to not need to export test obj in files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant