1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:57:45 +00:00

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 :)
This commit is contained in:
Matthew Olsson 2020-07-03 14:36:58 -07:00 committed by Andreas Kling
parent c43afe71b7
commit b9cf7a833f
4 changed files with 717 additions and 102 deletions

View file

@ -75,6 +75,12 @@ if (BUILD_LAGOM)
target_link_libraries(js_lagom stdc++)
target_link_libraries(js_lagom pthread)
add_executable(test-js_lagom ../../Userland/test-js.cpp)
set_target_properties(test-js_lagom PROPERTIES OUTPUT_NAME test-js)
target_link_libraries(test-js_lagom Lagom)
target_link_libraries(test-js_lagom stdc++)
target_link_libraries(test-js_lagom pthread)
add_executable(test-crypto_lagom ../../Userland/test-crypto.cpp)
set_target_properties(test-crypto_lagom PROPERTIES OUTPUT_NAME test-crypto)
target_link_libraries(test-crypto_lagom Lagom)