Linus Groh
bfbd6df892
test-js: Show progress in taskbar
...
This was a nice feature the old run-tests.sh script had - let's add it
to test-js as well! :^)
2020-07-07 10:40:06 +02:00
Andreas Kling
651829c1e6
test-js: Use Core::File::is_directory(path) instead of opening file
2020-07-06 23:46:29 +02:00
Matthew Olsson
695ba071a8
test-js: Remove tests_to_run in favor of a DirIterator
2020-07-06 23:40:35 +02:00
Linus Groh
461d90d042
LibJS: Convert Array tests to new testing framework
2020-07-06 23:40:35 +02:00
Matthew Olsson
15de2eda2b
LibJS: Convert all remaining non-Array tests to the new system :)
2020-07-06 23:40:35 +02:00
Matthew Olsson
918f4affd5
LibJS: Convert remaining top-level tests to new system
2020-07-06 23:40:35 +02:00
Matthew Olsson
e532888242
test-js: Only print files with failed or skipped tests
...
This does not affect output when the "-t" flag is specified -- all files
will still be printed in that case.
2020-07-06 23:40:35 +02:00
Matthew Olsson
a2dbd955f2
test-js: Display messages from console.log in test output
...
This will help greatly with debugging!
2020-07-06 23:40:35 +02:00
Matthew Olsson
38648f1758
test-js: Only parse test-common.js once
2020-07-06 23:40:35 +02:00
Matthew Olsson
a822512443
test-js: Print duration of each test when given '-t' flag
2020-07-06 23:40:35 +02:00
Matthew Olsson
82fa65135a
test-js: Allow skipping tests with "test.skip(name, callback)"
...
Skipped tests count as a "pass" rather than a "fail" (i.e. a test suite
with a skipped test will pass), however it does display a message when
the test is printing.
This is intended for tests which _should_ work, but currently do not.
This should be preferred over "// FIXME" notes if possible.
2020-07-06 23:40:35 +02:00
Matthew Olsson
cf537311e4
test-js: Remove run-tests.sh
...
The shell script is no longer necessary -- simply run "test-js" from
inside Serenity, or $SERENITY_ROOT/Build/Meta/Lagom/test-js from the
host.
2020-07-06 23:40:35 +02:00
Matthew Olsson
26acc8ba88
LibJS/test-js: Clean up test-js code
...
This commit also exposes JSONObject's implementation of stringify to the
public, so that it can be used by test-js without having to go through
the interpreter's environment.
2020-07-06 23:40:35 +02:00
Matthew Olsson
3f97d75778
LibJS: Convert most builtin tests to new system
2020-07-06 23:40:35 +02:00
Linus Groh
46581773c1
LibJS: Convert Reflect object tests to new testing framework
2020-07-06 23:40:35 +02:00
Matthew Olsson
449a1cf3a2
LibJS: Convert Proxy tests
2020-07-06 23:40:35 +02:00
Matthew Olsson
b86faeaeef
LibJS: Add test-common.js tests, remove unused matchers
...
Now that test-common.js is quite a bit more complicated, we need tests
for test-common to make sure all of the matchers behave correctly
2020-07-06 23:40:35 +02:00
Matthew Olsson
eea6041302
LibJS: Convert some top-level tests to the new system
...
First test conversions! These look really good :)
2020-07-06 23:40:35 +02:00
Matthew Olsson
b9cf7a833f
LibJS/test-js: Create test-js program, prepare for test suite refactor
...
This moves most of the work from run-tests.sh to test-js.cpp. This way,
we have a lot more control over how the test suite runs, as well as how
it outputs. This should result in some cool functionality!
This commit also refactors test-common.js to mimic the jest library.
This should allow tests to be much more expressive :)
2020-07-06 23:40:35 +02:00