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

Add Support for cargo nextest #3920

Open
wants to merge 323 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
323 commits
Select commit Hold shift + click to select a range
a300447
wasm-bindgen-test-runner: Added feature test Outputs the successful t…
spigaz Apr 10, 2024
736aa39
wasm-bindgen-test-runner: Added feature test Returns success to invoc…
spigaz Apr 10, 2024
9d98612
wasm-bindgen-test-runner: Added feature test Outputs its running 1 te…
spigaz Apr 10, 2024
52e22c1
wasm-bindgen-test-runner: Added feature test Outputs no error to invo…
spigaz Apr 10, 2024
ea45628
wasm-bindgen-test-runner: Added feature test Outputs the assembly tes…
spigaz Apr 10, 2024
4b0ba5f
wasm-bindgen-test-runner: Added feature test Outputs the successful t…
spigaz Apr 10, 2024
6c8dd40
wasm-bindgen-test-runner: Added feature test Outputs its running 1 te…
spigaz Apr 10, 2024
3a68d0e
wasm-bindgen-test-runner: Added feature test Outputs no error to invo…
spigaz Apr 10, 2024
eaa11c8
wasm-bindgen-test-runner: Added feature test Outputs the assembly tes…
spigaz Apr 10, 2024
4e29613
wasm-bindgen-test-runner: Added feature test Returns success to invoc…
spigaz Apr 10, 2024
2ca4d31
wasm-bindgen-test-runner: Moved test features invocation with_an_asse…
spigaz Apr 10, 2024
fde39ca
wasm-bindgen-test-runner: Moved test features invocation with_an_asse…
spigaz Apr 10, 2024
44efd35
wasm-bindgen-test-runner: Clippy improvement.
spigaz Apr 10, 2024
85d6a68
wasm-bindgen-test-runner: Updated dependencies to not wasm, updated t…
spigaz Apr 10, 2024
4f3d8ff
wasm-bindgen-test-runner: Removed unused use.
spigaz Apr 10, 2024
3bcd302
wasm-bindgen-test-macro: Updated to export a function with the comple…
spigaz Apr 13, 2024
c27eecf
wasm-bindgen-test-runner: Updated to use the new exported information…
spigaz Apr 13, 2024
37598b9
wasm-bindgen-test-runner: Added feature test Outputs the test in the …
spigaz Apr 13, 2024
9b43f4c
wasm-bindgen-test-runner: Added feature test Outputs the test in the …
spigaz Apr 13, 2024
dfe8d6d
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 13, 2024
d6fd1b5
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 13, 2024
fc1879b
wasm-bindgen-test-runner: Updated to not clone the assembly when the …
spigaz Apr 13, 2024
8aec4a8
wasm-bindgen-test-runner: Added feature test Outputs all tests in the…
spigaz Apr 13, 2024
7dea323
wasm-bindgen-test-runner: Added feature test Returns success to invoc…
spigaz Apr 13, 2024
ce17bae
wasm-bindgen-test-runner: Added feature test Outputs all tests in the…
spigaz Apr 13, 2024
03c51c8
wasm-bindgen-test-runner: Added feature test Returns success to invoc…
spigaz Apr 13, 2024
7414fba
wasm-bindgen-test-runner: Added feature test Outputs all tests in the…
spigaz Apr 13, 2024
c5795ff
wasm-bindgen-test-runner: Added feature test Outputs all tests in the…
spigaz Apr 13, 2024
3063147
wasm-bindgen-test-runner: Added feature test Returns success to invoc…
spigaz Apr 13, 2024
40ff63c
wasm-bindgen-test-runner: Added feature test Outputs all tests in the…
spigaz Apr 13, 2024
9d71328
wasm-bindgen-test-runner: Added feature test Returns success to invoc…
spigaz Apr 13, 2024
66240a5
wasm-bindgen-test-runner: Reorganized some steps, Fixed a step name.
spigaz Apr 13, 2024
34b1bb0
wasm-bindgen-test-runner: Reorganized some steps, Fixed a step name.
spigaz Apr 13, 2024
120048b
wasm-bindgent-test-runner: Moved test features of invocation with_an_…
spigaz Apr 13, 2024
b60d062
wasm-bindgen-test-runner: Fixed argument name --list format TARGET to…
spigaz Apr 13, 2024
1198553
wasm-bindgen-test-runner: Added feature test Outputs the test in the …
spigaz Apr 13, 2024
07c6478
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 13, 2024
6dbd65f
wasm-bindgen-test-runner: Added feature test Outputs the ignored test…
spigaz Apr 13, 2024
1327a52
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 13, 2024
8f25f42
wasm-bindgen-test-runner: Fixed feature test folder name,
spigaz Apr 13, 2024
75ab397
wasm-bindgen-test-runner: Added feature test Outputs nothing to the i…
spigaz Apr 13, 2024
f597ac7
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 13, 2024
386a526
wasm-bindgen-test-runnner: Added test feature Outputs the test in the…
spigaz Apr 13, 2024
86174a6
wasm-bindgen-test-runnner: Added test feature Returns success the inv…
spigaz Apr 13, 2024
486a284
wasm-bindgen-test-runnner: Added test feature Outputs the test in the…
spigaz Apr 13, 2024
6787e0f
wasm-bindgen-test-runnner: Added test feature Returns success to the …
spigaz Apr 13, 2024
3193035
wasm-bindgen-test-runnner: Added test feature Outputs nothing to the …
spigaz Apr 13, 2024
c409ea0
wasm-bindgen-test-runnner: Added test feature Returns success to the …
spigaz Apr 13, 2024
8ba7902
wasm-bindgen-test-runnner: Added test feature Outputs the test in the…
spigaz Apr 13, 2024
4203835
wasm-bindgen-test-runnner: Added test feature Returns success to the …
spigaz Apr 13, 2024
f48ce46
wasm-bindgen-test-runnner: Added test feature Outputs the ignored tes…
spigaz Apr 13, 2024
172c70f
wasm-bindgen-test-runnner: Added test feature Returns success to the …
spigaz Apr 13, 2024
75a38e5
wasm-bindgen-test-runnner: Fixed test feature folder name.
spigaz Apr 13, 2024
6830a95
wasm-bindgen-test-runner: Improved tests steps helpers to be more hel…
spigaz Apr 14, 2024
95bcb8e
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 14, 2024
d672fa1
wasm-bindgen-test-runner: Added feature test Outputs its running 1 te…
spigaz Apr 14, 2024
06880d4
wasm-bindgen-test-runner: Added feature test Outputs no error to the …
spigaz Apr 14, 2024
d465caa
wasm-bindgen-test-runner: Added feature test Outputs the assembly tes…
spigaz Apr 14, 2024
d9135b8
wasm-bindgen-test-runner: Added feature test Outputs the ignored test…
spigaz Apr 14, 2024
c366b4b
wasm-bindgen-test-runner: Improved test features folder.
spigaz Apr 14, 2024
33bccb6
wasm-bindgen-test-runner: Added test feature Outputs the test in the …
spigaz Apr 14, 2024
65ce408
wasm-bindgen-test-runner: Added test feature Returns success to the i…
spigaz Apr 14, 2024
e278327
wasm-bindgen-test-runner: Added test feature Outputs the test in the …
spigaz Apr 14, 2024
990042d
wasm-bindgen-test-runner: Added test feature Returns success to the i…
spigaz Apr 14, 2024
49e13dd
test-macro: Simplificed the generated extra function to not having th…
spigaz Apr 14, 2024
a4e401f
wasm-bindgen-test-runner: Improved test features folders and steps na…
spigaz Apr 14, 2024
dc93063
wasm-bindgent-test-runner: Reinstated support for --include-ignored.
spigaz Apr 14, 2024
f486b58
wasm-bindgen-test-runner: Updated test features because of reinstated…
spigaz Apr 14, 2024
48a2fe0
wasm-bindgen-test-runner: Reinstated support for the --skip PATTERN a…
spigaz Apr 16, 2024
c490707
wasm-bindgen-test-runner: Updated test features that check usage info…
spigaz Apr 16, 2024
2d93ae9
wasm-bindgen-test-runner: Added test feature for Return success to th…
spigaz Apr 16, 2024
007de54
wasm-bindgen-test-runner: Added test feature for Outputs no tests to …
spigaz Apr 16, 2024
96fd404
wasm-bindgen-test-runner: Moved test features of the invocation with_…
spigaz Apr 16, 2024
0067d9f
wasm-bindgen-test-runner: Refactored docopt usage information to allo…
spigaz Apr 16, 2024
46f920a
wasm-bindgen-test-runner: Updated features tests because of docopt us…
spigaz Apr 16, 2024
96c1216
wasm-bindgen-test-runner: Added test feature for Return success to th…
spigaz Apr 16, 2024
43bc556
wasm-bindgen-test-runner: Added test feature for Outputs no tests to …
spigaz Apr 16, 2024
d80d84e
wasm-bindgen-test-runner: Added test feature Returns success to the i…
spigaz Apr 16, 2024
6442f07
wasm-bindgen-test-runner: Added test feature Returns success to the i…
spigaz Apr 16, 2024
7537b5b
wasm-bindgen-test-runner: Added test feature Outputs its running 1 te…
spigaz Apr 16, 2024
de6fa41
wasm-bindgen-test-runner: Added test feature Outputs no error to the …
spigaz Apr 16, 2024
1de3579
wasm-bindgen-test-runner: Added test feature Outputs the assembly tes…
spigaz Apr 16, 2024
a05190b
wasm-bindgen-test-runner: Added test feature Outputs the successful t…
spigaz Apr 16, 2024
e7a5f6b
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 17, 2024
83fe7c8
wasm-bindgen-test-runner: Added feature test Outputs its running 1 te…
spigaz Apr 17, 2024
0480530
wasm-bindgen-test-runner: Added feature test Outputs no error to the …
spigaz Apr 17, 2024
433a1c9
wasm-bindgen-test-runner: Added feature test Outputs the assembly tes…
spigaz Apr 17, 2024
d1eacd5
wasm-bindgen-test-runner: Added feature test Outputs no information a…
spigaz Apr 17, 2024
5a1182c
wasm-bindgen-test-runner: Added feature test Outputs its running 1 te…
spigaz Apr 17, 2024
c2dc1ab
wasm-bindgen-test-runner: Added feature test Outputs no error to the …
spigaz Apr 17, 2024
5bfabee
wasm-bindgen-test-runner: Added feature test Outputs no information a…
spigaz Apr 17, 2024
fe6ffdf
wasm-bindgen-test-runner: Added feature test Outputs the assembly tes…
spigaz Apr 17, 2024
7a8218d
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 17, 2024
0b4e024
wasm-bindgen-test-runner: Added feature test Outputs its running 1 te…
spigaz Apr 17, 2024
fedb892
wasm-bindgen-test-runner: Added feature test Outputs no error to the …
spigaz Apr 17, 2024
a559e8e
wasm-bindgen-test-runner: Added feature test Outputs no information a…
spigaz Apr 17, 2024
4a1698f
wasm-bindgen-test-runner: Added feature test Outputs the assembly tes…
spigaz Apr 17, 2024
b97a571
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 17, 2024
0fbb5bd
wasm-bindgen-test-runner: Added feature test Outputs its running 1 te…
spigaz Apr 17, 2024
5422439
wasm-bindgen-test-runner: Added feature test Outputs no error to the …
spigaz Apr 17, 2024
006fcea
wasm-bindgen-test-runner: Added feature test Outputs no information a…
spigaz Apr 17, 2024
5c40364
wasm-bindgen-test-runner: Added feature test Outputs the assembly tes…
spigaz Apr 17, 2024
5afd9de
wasm-bindgen-test-runner: Added feature test Returns success to the i…
spigaz Apr 17, 2024
9fed3b3
wasm-bindgen-test-runner: Added features tests to the invocation with…
spigaz Apr 17, 2024
6366651
wasm-bindgen-test-runner: Added features tests to the invocation with…
spigaz Apr 17, 2024
6b25e80
wasm-bindgen-test-runner: Added features tests to the invocation with…
spigaz Apr 17, 2024
812e4fb
wasm-bindgen-test-runner: Added features tests to the invocation with…
spigaz Apr 17, 2024
e80c5f0
wasm-bindgen-test-runner: Added features tests to the invocation with…
spigaz Apr 17, 2024
cab0a55
wasm-bindgen-test-runner: Fixed some formatting issues.
spigaz Apr 17, 2024
b7cf07a
wasm-bindgen-test-runner: Added features tests to the invocation with…
spigaz Apr 17, 2024
6896739
wasm-bindgen-test-runner: Reinstated support for the argument TESTNAM…
spigaz Apr 17, 2024
ca4af0d
wasm-bindgen-test-runner: Updated test features because support for t…
spigaz Apr 17, 2024
ef8c753
wasm-bindgen-test-runner: Added feature tests for the invocation with…
spigaz Apr 17, 2024
97c1ffa
wasm-bindgen-test-runner: Added feature tests for the invocation with…
spigaz Apr 17, 2024
5e92d12
wasm-bindgen-test-runner: Added feature tests for the invocation with…
spigaz Apr 18, 2024
95fc10d
wasm-bindgen-test-runner: Added feature tests for the invocation with…
spigaz Apr 18, 2024
0927878
wasm-bindgen-test-runner: Added feature tests for the invocation with…
spigaz Apr 18, 2024
e68a404
wasm-bindgen-test-runner: Added feature tests for the invocation with…
spigaz Apr 18, 2024
5877a71
wasm-bindgen-test-runnner: Updated the cli to accept TESTNAME --nocap…
spigaz Apr 19, 2024
af197d4
wasm-bindgen-test-runnner: Updated the runtime to accept the argument…
spigaz Apr 19, 2024
f935841
wasm-bindgen-test-runner: Updated test features that target help and …
spigaz Apr 19, 2024
8860d09
wasm-bindgen-test-runner: Added test feature Returns success to the i…
spigaz Apr 19, 2024
c1fa97d
wasm-bindgen-test-runner: Added test feature Outputs the successful t…
spigaz Apr 19, 2024
864b04a
wasm-bindgen-test-runner: Added test feature Outputs no error to the …
spigaz Apr 19, 2024
dccc9c8
wasm-bindgen-test-runner: Added support to the cli to handle the TEST…
spigaz Apr 19, 2024
3df7e10
wasm-bindgen-test-runner: Updated test features because of improvemen…
spigaz Apr 19, 2024
28a28f1
wasm-bindgen-test-runner: Added test feature Outputs its running 1 te…
spigaz Apr 19, 2024
32a7e7c
wasm-bindgen-test-runner: Improved runtime handling of --nocapture an…
spigaz Apr 19, 2024
b0169a7
wasm-bindgen-test-runner: Moved handling of the exact handling from t…
spigaz Apr 20, 2024
9bd87ca
wasm-bindgen-test-runner: Added test feature Outputs the assembly tes…
spigaz Apr 20, 2024
7d5ea71
wasm-bindgen-test-runner: Added test feature Outputs no information a…
spigaz Apr 20, 2024
cbbf586
wasm-bindgen-test-runner: Added test features to the invocation with_…
spigaz Apr 20, 2024
3cb056c
wasm-bindgen-test-runner: Added test features to the invocation with_…
spigaz Apr 20, 2024
4916acb
wasm-bindgen-test-runner: Added test features to the invocation with_…
spigaz Apr 20, 2024
60085fa
wasm-bindgen-test-runner: Added test feature Outputs the successful t…
spigaz Apr 21, 2024
a7e1c65
wasm-bindgen-test-runner: Added test feature Outputs the successful t…
spigaz Apr 21, 2024
933fdec
wasm-bindgen-test-runner: Added a lock based handler to prevent tmpdi…
spigaz Apr 22, 2024
fb6d474
wasm-bindgen-test-runner: Clippy improvements.
spigaz Apr 22, 2024
d0b6aa3
wasm-bindgen-test-runner: Updated to run bindgen on list and use it w…
spigaz Apr 22, 2024
429199e
wasm-bindgen-test-runner: Updated test step to use the sandbox for re…
spigaz Apr 22, 2024
e744d44
wasm-bindgen-test-runner: Added feature tests for the invocation runt…
spigaz Apr 27, 2024
2062aaa
wasm-bindgen-test-runner: Fixed minor bug in node exec that is reused…
spigaz Apr 27, 2024
1816b15
wasm-bindgen-test-runner: Added missing const to generated node run.js.
spigaz Apr 27, 2024
ceabe5a
wasm-bindgen-test-runner: Improved test step formatting.
spigaz Apr 27, 2024
442f4b3
wasm-bindgen-test-runner: Improved node formatting.
spigaz Apr 27, 2024
819b079
wasm-bindgen-test-runner: Fixed deno support.
spigaz Apr 27, 2024
c34fd89
wasm-bindgen-test-runner: Added test features to the invocation runti…
spigaz Apr 27, 2024
4b4ee01
wasm-bindgent-test-runner: Added deno to the test_native that runs al…
spigaz Apr 27, 2024
076cbfe
wasm-bindgen-test-runner: Added a way to specify that tests should be…
spigaz Apr 27, 2024
ebae8a9
wasm-bindgen-test-runner: Added test features to the invocation runti…
spigaz Apr 27, 2024
29608d9
wasm-bindgen-test-runner: Updated then steps to work with &Context to…
spigaz May 24, 2024
f86254e
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 24, 2024
9988372
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 24, 2024
20a9cd6
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 24, 2024
90f158b
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 24, 2024
0b9aad3
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 24, 2024
d538792
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 24, 2024
8ecb059
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 25, 2024
6527b5a
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 25, 2024
fd852a1
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 25, 2024
0890856
wasm-bindgen-test-runner: Improved <testname> help information.
spigaz May 26, 2024
d3e6e18
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 26, 2024
b3bf847
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 26, 2024
e01cf17
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 26, 2024
4c10aba
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 26, 2024
1097272
wasm-bindgen-test-runner: Migrating some features to the feature macr…
spigaz May 26, 2024
f4a7706
wasm-bindgen-test-runner: Added support for enabling filtering the sp…
spigaz Jun 23, 2024
6ee04f3
wasm-bindgen-test-runner: Removed extra tabs that were being injected…
spigaz Jun 26, 2024
a0fdaba
wasm-bindgen-test-runner: Updated feature to be parametric.
spigaz Jun 26, 2024
49a803e
wasm-bindgen-test-runner: Added a File Lock to prevent multiple safar…
spigaz Jun 29, 2024
91e5f7c
wasm-bindgen-test: Updated to allow default on WASM_BINDGEN_USE_BROWSER.
spigaz Jun 30, 2024
b0abdcb
wasm-bindgen-test-runner: Renamed Runtime to TestMode as its the name…
spigaz Jun 30, 2024
b0bb3f9
wasm-bindgen-test-runner: Converted feature tests to be parametric ov…
spigaz Jun 30, 2024
59f49a0
wasm-bindgen-test-runner: Improved the headless SafariLock.
spigaz Jun 30, 2024
24968f8
wasm-bindgen-test-runner: Improved formatting.
spigaz Jun 30, 2024
c030ecd
wasm-bindgen-test-runner: Extracted Lock from SafariLock, improved to…
spigaz Jul 1, 2024
a89311b
wasm-bindgen-test-runner: Updated headless to terminate Safari --auto…
spigaz Jul 1, 2024
6558b6e
wasm-bindgen-test-runner: Converted more feature tests to be parametr…
spigaz Jul 1, 2024
d9c6177
wasm-bindgen-test-runner: Fixed deno handling of arguments.
spigaz Jul 2, 2024
65c17e2
wasm-bindgen-test-runner: Simplied feature tests organization for run…
spigaz Jul 5, 2024
136d7ec
wasm-bindgen-test-runner: Added a feature test to invocation runtimes…
spigaz Jul 6, 2024
f39dd51
wasm-bindgen-test-runner: Simplified deno feature test to use TestMod…
spigaz Jul 6, 2024
d0c2322
wasm-bindgen-test-runner: Simplified deno feature test to use TestMod…
spigaz Jul 6, 2024
aa72b1d
wasm-bindgen-test-runner: Simplified node feature test to use TestMod…
spigaz Jul 6, 2024
908da5a
wasm-bindgen-test-runner: Added a feature test for the runtime edge.
spigaz Jul 6, 2024
846efb0
wasm-bindgen-test-runner: Added a feature test for the runtime safari.
spigaz Jul 6, 2024
09f914f
wasm-bindgen-test-runner: Added feature tests for test_mode.
spigaz Jul 6, 2024
bb980c7
wasm-bindgen-test-runner: Added feature tests for test mode dedicated…
spigaz Jul 6, 2024
0fde303
wasm-bindgen-test-runner: Added support for specifying that the tests…
spigaz Jul 6, 2024
03b8942
wasm-bindgen-test-runner: Added feature tests for test mode browser d…
spigaz Jul 6, 2024
0b8f206
wasm-bindgen-test-runner: Added feature tests for test mode dedicated…
spigaz Jul 6, 2024
a94e99a
wasm-bindgen-test-runner: Added feature tests for test mode default.
spigaz Jul 6, 2024
fb1d39b
wasm-bindgen-test-runner: Added support for specifying that the tests…
spigaz Jul 6, 2024
5111ee8
wasm-bindgen-test-runner: Added feature tests for test mode service w…
spigaz Jul 6, 2024
f602ad5
wasm-bindgen-test-runner: Added support for specifying that the tests…
spigaz Jul 6, 2024
fe56bf7
wasm-bindgen-test-runner: Added feature tests for test mode shared wo…
spigaz Jul 6, 2024
3620c99
wasm-bindgen-test-runner: Simplified feature test for invocation with…
spigaz Jul 6, 2024
3ed2f05
wasm-bindgen-test-runner: Simplified feature tests invocation::options.
spigaz Jul 6, 2024
e699bf3
wasm-bindgen-test-runner: Updated feature tests to use explicit tests…
spigaz Jul 6, 2024
7fbb279
wasm-bindgen-test-runner: Updated feature tests to use explicit tests…
spigaz Jul 7, 2024
fe40708
wasm-bindgen-test-runner: Updated feature tests to use explicit tests…
spigaz Jul 7, 2024
82982c0
wasm-bindgen-test-runner: Updated feature tests to use explicit tests…
spigaz Jul 7, 2024
f69b819
wasm-bingen-test-runner: Improved Lock readability.
spigaz Jul 8, 2024
6faf3a0
wasm-bingen-test-runner: Improved headless to handle situations where…
spigaz Jul 8, 2024
abb6a2b
wasm-bingen-test-runner: Fixed a regression in the tests assembly bui…
spigaz Jul 8, 2024
f96f10c
wasm-bindgen-test-runner: Improved terminate_process used to terminat…
spigaz Jul 8, 2024
c663ed3
wasm-bindgen-test-runner: Improved Lock: Refactored read_pid to read_…
spigaz Jul 8, 2024
854302a
wasm-bindgen-test-runner: Improved Lock: Added methods remove_file an…
spigaz Jul 8, 2024
68d07f0
wasm-bindgen-test-runner: Improved Lock: Moved try_aquire.
spigaz Jul 8, 2024
46031d8
wasm-bindgen-test-runner: Improved Lock: Added method has_lock.
spigaz Jul 8, 2024
4d93a2e
wasm-bindgen-test-runner: Improved Lock: Added an anti-starvation mec…
spigaz Jul 8, 2024
5afa676
wasm-bindgen-test-runnner: Improved Lock: Added a pid field.
spigaz Jul 9, 2024
c6e88c6
wasm-bindgen-test-runnner: Fixed a minor bug in the browser filtering.
spigaz Jul 9, 2024
5a4309d
wasm-bindgen-test-runner: Updated feature test step to be more flexib…
spigaz Jul 10, 2024
23abb3e
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
b1f9d10
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
f9b6575
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
d17f54d
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
aa2b6ad
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
eb0c373
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
3465ea7
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
971b7ea
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
053aa27
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
97d35f3
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
68819a9
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
f40e6b7
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
f67723f
wasm-bindgen-test-runner: Updated feature tests to use a more explici…
spigaz Jul 10, 2024
76f9e72
wasm-bindgen-test-runner: Simplified feature test step implementation.
spigaz Jul 10, 2024
16fee95
wasm-bindgen-test-runner: Extracted list and version commands. Update…
spigaz Jul 11, 2024
75424ef
wasm-bindgen-test-runner: Improved Lock candidate selection and oldes…
spigaz Jul 12, 2024
0035f61
wasm-bindgen-test-runner: Updated ResourceCoordinator usage.
spigaz Jul 12, 2024
1c7e092
wasm-bindgen-test-runner: Improved Lock is_candidate_older to be more…
spigaz Jul 13, 2024
11a192b
wasm-bindgen-test-runner: Reverted Lock change.
spigaz Jul 13, 2024
e27fffd
wasm-bindgen-test-runner: Updated arguments handling to clap.
spigaz Jul 15, 2024
040fa5a
wasm-bindgen-test-runner: Updated arguments usage by the runtimes to …
spigaz Jul 15, 2024
fc9ba7d
wasm-bindgen-test-runner: Removed unused dev-dependencies.
spigaz Jul 15, 2024
6a71808
wasm-bindgen-test-runner: Removed unused fs2 dependency.
spigaz Jul 15, 2024
40fec36
wasm-bindgen-test-runner: Simplifed match in the test macro.
spigaz Jul 15, 2024
d9fc3d1
wasm-bindgen-test-runner: Simplifed the wasm_bindgen_test macro to on…
spigaz Jul 15, 2024
87f757c
wasm-bindgen-test-runner: Step helper function: Extracted wasm_bindge…
spigaz Jul 18, 2024
c2b38c9
wasm-bindgen-test-runner: Added a feature test to test the invocation…
spigaz Jul 19, 2024
79b66c4
wasm-bindgen-test-runner: Updated the cargo config used by cargo next…
spigaz Jul 19, 2024
ba85418
wasm-bindgen-test-runner: Added a check to make sure that the wasm-bi…
spigaz Jul 19, 2024
947b4fb
wasm-bindgen-test-runner: Added Drop to PackageBuilder to clean the p…
spigaz Jul 20, 2024
aeba8c6
wasm-bindgen-test-runner: Improved the random part of the AssemblyBui…
spigaz Jul 20, 2024
3dd4aef
wasm-bindgen-test-runner: Fixed the sandbox directory path.
spigaz Jul 20, 2024
9f724e9
wasm-bindgen-test-runner: Moved the feature tests to the cli crate.
spigaz Jul 21, 2024
5501427
wasm-bindgen-test-runner: The check for the presence of the wasm-bind…
spigaz Jul 21, 2024
0ae860e
wasm-bindgen-test-runner: Moved the feature tests to the cli crate.
spigaz Jul 21, 2024
a2a80d5
wasm-bindgen-test-runner: Reintroduced the old whitespace for review …
spigaz Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: '20'
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- run: cargo test
- run: cargo test -p wasm-bindgen-cli-support
- run: cargo test -p wasm-bindgen-cli
Expand Down
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ serde_derive = "1.0"
wasm-bindgen-test-crate-a = { path = 'tests/crates/a', version = '0.1' }
wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' }

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
assert_cmd = "1.0"
lazy_static = "1.4.0"
predicates = "1.0.0"
rand = "0.8.5"
regex = "1.10.4"

[workspace]
members = [
"benchmarks",
Expand Down
3 changes: 2 additions & 1 deletion crates/cli-support/src/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ impl<'a> Context<'a> {
}}

const wasmInstance = (await WebAssembly.instantiate(wasmCode, imports)).instance;
const wasm = wasmInstance.exports;",
const wasm = wasmInstance.exports;
export const __wasm = wasm;",
module_name = module_name
)
}
Expand Down
4 changes: 4 additions & 0 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pkg-url = "https://github.com/rustwasm/wasm-bindgen/releases/download/{ version
bin-dir = "wasm-bindgen-{ version }-{ target }/{ bin }{ binary-ext }"

[dependencies]
clap = { version = "4.5", features = ["derive"] }
docopt = "1.0"
env_logger = "0.8"
anyhow = "1.0"
Expand All @@ -40,8 +41,11 @@ wasm-bindgen-shared = { path = "../shared", version = "=0.2.92" }
[dev-dependencies]
assert_cmd = "1.0"
diff = "0.1"
lazy_static = "1.4.0"
predicates = "1.0.0"
rand = "0.8.5"
rayon = "1.0"
regex = "1.10.4"
tempfile = "3.0"
wasmparser = "0.102.0"
wasmprinter = "0.2.54"
Expand Down
25 changes: 25 additions & 0 deletions crates/cli/src/bin/wasm-bindgen-test-runner/cli/args.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
use super::ListArgs;
use super::RunArgs;
use clap::Parser;
use std::path::PathBuf;

#[derive(Parser, Debug)]
// It would be better to use the default version, but it returns wasm-bindgen-cli instead of wasm-bindgen-test-runner
#[command(about = "Execute all wasm bindgen unit and integration tests and build examples of a local package", version = None, long_about = None)]
#[command(
after_help = "Additional documentation: https://rustwasm.github.io/wasm-bindgen/wasm-bindgen-test/usage.html"
)]
pub struct Args {
/// The wasm file to test
pub input: Option<PathBuf>,

#[command(flatten)]
pub run: RunArgs,

#[command(flatten)]
pub list: ListArgs,

/// Print version
#[arg(short = 'V', long)]
pub version: bool,
}
16 changes: 16 additions & 0 deletions crates/cli/src/bin/wasm-bindgen-test-runner/cli/list_args.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
use clap::Args;

#[derive(Args, Debug)]
pub struct ListArgs {
/// List all tests that would be run
#[arg(long)]
pub list: bool,

/// Format of the tests listing output
#[arg(long, value_name = "FORMAT", value_parser = ["terse", "json"])]
pub format: Option<String>,

/// Restricts the listing to only consider the ignored tests
#[arg(long)]
pub ignored: bool,
}
7 changes: 7 additions & 0 deletions crates/cli/src/bin/wasm-bindgen-test-runner/cli/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mod args;
mod list_args;
mod run_args;

pub use args::Args;
pub use list_args::ListArgs;
pub use run_args::RunArgs;
52 changes: 52 additions & 0 deletions crates/cli/src/bin/wasm-bindgen-test-runner/cli/run_args.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
use clap::Args;

#[derive(Args, Debug)]
pub struct RunArgs {
/// If specified, only executes the tests containing [testname] in their names
pub testname: Option<String>,

/// Run only the test with the exact name
#[arg(long)]
pub exact: bool,

/// Include ignored tests in the test run
#[arg(long)]
pub include_ignored: bool,

/// Disables the tests output capture
#[arg(long)]
pub nocapture: bool,

/// Skip tests whose names match the given pattern
#[arg(long, value_name = "PATTERN", num_args = 0..)]
pub skip: Vec<String>,
}

impl RunArgs {
pub fn to_args(&self) -> Vec<&str> {
let mut args = Vec::<&str>::new();

if let Some(testname) = &self.testname {
args.push(testname);
}

if self.exact {
args.push("--exact");
}

if self.include_ignored {
args.push("--include-ignored");
}

if self.nocapture {
args.push("--nocapture");
}

for skip in &self.skip {
args.push("--skip");
args.push(skip);
}

args
}
}
26 changes: 26 additions & 0 deletions crates/cli/src/bin/wasm-bindgen-test-runner/commands/list.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
use anyhow::Result;
use walrus::Module;

pub fn list(wasm: &Module, ignored: bool) -> Result<()> {
for export in wasm.exports.iter() {
if !export.name.starts_with("__wbgt_") {
continue;
}

let parts: Vec<&str> = export.name.split('$').collect();

if ignored {
if parts.len() == 3 {
let test = parts[1];
let test = &test[test.find("::").unwrap_or(0) + 2..];
println!("{}: test", test);
}
} else {
let test = parts[1];
let test = &test[test.find("::").unwrap_or(0) + 2..];
println!("{}: test", test);
}
}

return Ok(());
}
5 changes: 5 additions & 0 deletions crates/cli/src/bin/wasm-bindgen-test-runner/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mod list;
mod version;

pub use list::list;
pub use version::version;
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use anyhow::Result;

pub fn version() -> Result<()> {
println!(
"wasm-bindgen-test-runner {}",
wasm_bindgen_shared::version()
);
return Ok(());
}
20 changes: 8 additions & 12 deletions crates/cli/src/bin/wasm-bindgen-test-runner/deno.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use std::ffi::OsString;
use std::fs;
use std::path::Path;
use std::process::Command;
Expand All @@ -7,27 +6,19 @@ use anyhow::{Context, Error};

use crate::node::{exec, SHARED_SETUP};

pub fn execute(
module: &str,
tmpdir: &Path,
args: &[OsString],
tests: &[String],
) -> Result<(), Error> {
pub fn execute(module: &str, tmpdir: &Path, args: &[&str], tests: &[String]) -> Result<(), Error> {
let mut js_to_execute = format!(
r#"import * as wasm from "./{0}.js";

{console_override}

// global.__wbg_test_invoke = f => f();
window.__wbg_test_invoke = f => f();

// Forward runtime arguments. These arguments are also arguments to the
// `wasm-bindgen-test-runner` which forwards them to deno which we
// forward to the test harness. this is basically only used for test
// filters for now.
cx.args(Deno.args.slice(1));

const ok = await cx.run(tests.map(n => wasm.__wasm[n]));
if (!ok) Deno.exit(1);
cx.args(Deno.args);

const tests = [];
"#,
Expand All @@ -39,6 +30,11 @@ pub fn execute(
js_to_execute.push_str(&format!("tests.push('{}')\n", test));
}

js_to_execute.push_str(
r#"const ok = await cx.run(tests.map(n => wasm.__wasm[n]));
if (!ok) Deno.exit(1);"#,
);

let js_path = tmpdir.join("run.js");
fs::write(&js_path, js_to_execute).context("failed to write JS file")?;

Expand Down
Loading