mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:07:34 +00:00
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. :^)
This commit is contained in:
parent
af68bf862f
commit
f7eb8eed34
2 changed files with 171 additions and 10 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue