diff options
author | Andreas Kling <kling@serenityos.org> | 2023-05-27 19:46:17 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-05-27 21:28:05 +0200 |
commit | f7eb8eed3442ba263c5b85ae50a84332f6255f98 (patch) | |
tree | 905ccda62e89f150fcbab9d4a0a9ba7e427bb030 /Ladybird | |
parent | af68bf862fc2a97c3337fde7e9b2c3a4200dfd96 (diff) | |
download | serenity-f7eb8eed3442ba263c5b85ae50a84332f6255f98.zip |
Ladybird: Run all layout & text tests in the same process
Instead of starting a new headless-browser for every layout & text test,
headless-browser now gets a mode where it runs all the tests in a single
process.
This is massively faster on my machine, taking a full LibWeb test run
from 14 seconds to less than 1 second. Hopefully it will be a similarly
awesome improvement on CI where it has been soaking up more and more
time lately. :^)
Diffstat (limited to 'Ladybird')
-rw-r--r-- | Ladybird/CMakeLists.txt | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Ladybird/CMakeLists.txt b/Ladybird/CMakeLists.txt index 2809669283..d40237a50d 100644 --- a/Ladybird/CMakeLists.txt +++ b/Ladybird/CMakeLists.txt @@ -166,14 +166,8 @@ endif() include(CTest) if (BUILD_TESTING) add_test( - NAME Layout - COMMAND ${SERENITY_SOURCE_DIR}/Tests/LibWeb/Layout/layout_test.sh ${CMAKE_CURRENT_BINARY_DIR} + NAME LibWeb + COMMAND ${CMAKE_CURRENT_BINARY_DIR}/headless-browser --run-tests ${SERENITY_SOURCE_DIR}/Tests/LibWeb ) - set_tests_properties(Layout PROPERTIES ENVIRONMENT QT_QPA_PLATFORM=offscreen) - - add_test( - NAME LibWebText - COMMAND ${SERENITY_SOURCE_DIR}/Tests/LibWeb/Text/text_test.sh ${CMAKE_CURRENT_BINARY_DIR} - ) -set_tests_properties(LibWebText PROPERTIES ENVIRONMENT QT_QPA_PLATFORM=offscreen) + set_tests_properties(LibWeb PROPERTIES ENVIRONMENT QT_QPA_PLATFORM=offscreen) endif() |