Skip to content

Small improvements to bun test #3071

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

Merged
merged 38 commits into from
Jun 1, 2023
Merged

Small improvements to bun test #3071

merged 38 commits into from
Jun 1, 2023

Conversation

Electroid
Copy link
Contributor

@Electroid Electroid commented May 25, 2023

Changelog

c09fcb2 The skip icon is now » instead of - (it's nicer).

Screen_Shot_2023-05-25_at_11 21 05_AM

1d7b76b The title of each test file is now its path instead of its filename.

Before After
Screen Shot 2023-05-25 at 2 23 37 PM Screen Shot 2023-05-25 at 2 20 16 PM

4926e6a When bun test is run in Github Actions, logs are grouped by test file using workflow commands. Detection is done by checking that the GITHUB_ACTIONS environment variable is set to true.

Screen.Recording.2023-05-25.at.3.05.02.PM.online-video-cutter.com.mp4

d1c658e When an error occurs in a test, an annotation is emitted.

Screen.Recording.2023-05-26.at.12.55.01.PM.mov

@Electroid Electroid added enhancement New feature or request bun:test Something related to the `bun test` runner labels May 25, 2023
@Electroid Electroid requested a review from Jarred-Sumner May 25, 2023 21:29
@github-actions
Copy link
Contributor

github-actions bot commented May 25, 2023

@Jarred-Sumner 28 files with test failures on linux-x64-baseline:

  • test/bundler/bun-build-api.test.ts
  • test/bundler/bundler_browser.test.ts
  • test/bundler/bundler_compile.test.ts
  • test/bundler/bundler_edgecase.test.ts
  • test/bundler/bundler_jsx.test.ts
  • test/bundler/bundler_naming.test.ts
  • test/bundler/bundler_plugin.test.ts
  • test/bundler/esbuild/dce.test.ts
  • test/bundler/esbuild/default.test.ts
  • test/bundler/esbuild/extra.test.ts
  • test/bundler/esbuild/importstar.test.ts
  • test/bundler/esbuild/loader.test.ts
  • test/bundler/esbuild/packagejson.test.ts
  • test/bundler/esbuild/splitting.test.ts
  • test/bundler/esbuild/ts.test.ts
  • test/bundler/esbuild/tsconfig.test.ts
  • test/cli/run/env.test.ts
  • test/cli/run/preload-test.test.js
  • test/cli/run/run-cjs.test.ts
  • test/js/bun/plugin/plugins.test.ts
  • test/js/bun/resolve/png/test-png-import.test.js
  • test/js/bun/test/preload-test.test.js
  • test/js/bun/test/snapshot-tests/snapshots/more-snapshots/different-directory.test.ts
  • test/js/bun/test/snapshot-tests/snapshots/more.test.ts
  • test/js/bun/websocket/websocket-server.test.ts
  • test/js/node/child_process/child_process-node.test.js
  • test/js/node/dns/node-dns.test.js
  • test/transpiler/transpiler.test.js

View test output

#ea31bf4cbbfee3897e9c26099d3de23a76aa5947

@github-actions
Copy link
Contributor

github-actions bot commented May 25, 2023

@Jarred-Sumner 28 files with test failures on linux-x64:

  • test/bundler/bun-build-api.test.ts
  • test/bundler/bundler_browser.test.ts
  • test/bundler/bundler_compile.test.ts
  • test/bundler/bundler_edgecase.test.ts
  • test/bundler/bundler_jsx.test.ts
  • test/bundler/bundler_naming.test.ts
  • test/bundler/bundler_plugin.test.ts
  • test/bundler/esbuild/dce.test.ts
  • test/bundler/esbuild/default.test.ts
  • test/bundler/esbuild/extra.test.ts
  • test/bundler/esbuild/importstar.test.ts
  • test/bundler/esbuild/loader.test.ts
  • test/bundler/esbuild/packagejson.test.ts
  • test/bundler/esbuild/splitting.test.ts
  • test/bundler/esbuild/ts.test.ts
  • test/bundler/esbuild/tsconfig.test.ts
  • test/cli/run/env.test.ts
  • test/cli/run/preload-test.test.js
  • test/cli/run/run-cjs.test.ts
  • test/js/bun/plugin/plugins.test.ts
  • test/js/bun/resolve/png/test-png-import.test.js
  • test/js/bun/test/preload-test.test.js
  • test/js/bun/test/snapshot-tests/snapshots/more-snapshots/different-directory.test.ts
  • test/js/bun/test/snapshot-tests/snapshots/more.test.ts
  • test/js/bun/websocket/websocket-server.test.ts
  • test/js/node/child_process/child_process-node.test.js
  • test/js/node/dns/node-dns.test.js
  • test/transpiler/transpiler.test.js

View test output

#ea31bf4cbbfee3897e9c26099d3de23a76aa5947

@github-actions
Copy link
Contributor

github-actions bot commented May 25, 2023

@Jarred-Sumner 31 files with test failures on bun-darwin-x64-baseline:

  • test/bundler/bun-build-api.test.ts
  • test/bundler/bundler_browser.test.ts
  • test/bundler/bundler_compile.test.ts
  • test/bundler/bundler_edgecase.test.ts
  • test/bundler/bundler_jsx.test.ts
  • test/bundler/bundler_naming.test.ts
  • test/bundler/bundler_plugin.test.ts
  • test/bundler/esbuild/dce.test.ts
  • test/bundler/esbuild/default.test.ts
  • test/bundler/esbuild/extra.test.ts
  • test/bundler/esbuild/importstar.test.ts
  • test/bundler/esbuild/loader.test.ts
  • test/bundler/esbuild/packagejson.test.ts
  • test/bundler/esbuild/splitting.test.ts
  • test/bundler/esbuild/ts.test.ts
  • test/bundler/esbuild/tsconfig.test.ts
  • test/cli/run/env.test.ts
  • test/cli/run/preload-test.test.js
  • test/cli/run/run-cjs.test.ts
  • test/js/bun/plugin/plugins.test.ts
  • test/js/bun/resolve/png/test-png-import.test.js
  • test/js/bun/spawn/spawn-streaming-stdin.test.ts
  • test/js/bun/sqlite/sqlite.test.js
  • test/js/bun/test/preload-test.test.js
  • test/js/bun/test/snapshot-tests/snapshots/more-snapshots/different-directory.test.ts
  • test/js/bun/test/snapshot-tests/snapshots/more.test.ts
  • test/js/bun/util/sleepSync.test.ts
  • test/js/node/child_process/child_process-node.test.js
  • test/js/node/dns/node-dns.test.js
  • test/js/web/timers/setTimeout.test.js
  • test/transpiler/transpiler.test.js

View test output

#ea31bf4cbbfee3897e9c26099d3de23a76aa5947

@github-actions
Copy link
Contributor

github-actions bot commented May 26, 2023

prettier errors have been resolved. Thank you.

#ea31bf4cbbfee3897e9c26099d3de23a76aa5947

@Electroid Electroid requested a review from Jarred-Sumner May 26, 2023 19:58
@Jarred-Sumner
Copy link
Collaborator

This looks good though there are new test failures

@Jarred-Sumner
Copy link
Collaborator

test.runIf

interesting

@Jarred-Sumner
Copy link
Collaborator

maybe test.if?

@simylein
Copy link
Contributor

If you are already on it can we implement that test failures log last because the constant scrolling up the logs to find details about failing tests is rather annoying. I remember having seen an issue about this but cannot find it at the moment.

@Jarred-Sumner Jarred-Sumner merged commit e632941 into main Jun 1, 2023
@Jarred-Sumner Jarred-Sumner deleted the feat/bun-test-ci branch June 1, 2023 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bun:test Something related to the `bun test` runner enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

expect().toHaveProperty() throw segfault if expect value is undefined bun test <filter> should check against relative paths
3 participants