mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 09:49:15 +03:00
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! :^)
This commit is contained in:
parent
4c845b35ac
commit
bfbd6df892
Notes:
sideshowbarker
2024-07-19 05:03:12 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/bfbd6df8920 Pull-request: https://github.com/SerenityOS/serenity/pull/2722
@ -184,8 +184,19 @@ Vector<String> get_test_paths(const String& test_root)
|
||||
|
||||
void TestRunner::run()
|
||||
{
|
||||
for (auto& path : get_test_paths(m_test_root))
|
||||
size_t progress_counter = 0;
|
||||
auto test_paths = get_test_paths(m_test_root);
|
||||
for (auto& path : test_paths) {
|
||||
++progress_counter;
|
||||
print_file_result(run_file_test(path));
|
||||
#ifdef __serenity__
|
||||
fprintf(stderr, "\033]9;%zu;%zu;\033\\", progress_counter, test_paths.size());
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef __serenity__
|
||||
fprintf(stderr, "\033]9;-1;\033\\");
|
||||
#endif
|
||||
|
||||
print_test_results();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user