Christoffer Lerno
Christoffer Lerno
Latest output looks like this: ``` - 21/1298 /home/runner/work/c3c/c3c/test/test_suite/union/union_codegen_empty.c3t: Passed. - 22/1298 /home/runner/work/c3c/c3c/test/test_suite/union/designated_union_zeroing.c3t: Passed. - 23/1298 /home/runner/work/c3c/c3c/test/test_suite/union/inferred_size_vector.c3: Passed. Passed. - 24/1298 /home/runner/work/c3c/c3c/test/test_suite/slices/slice_conv_byte.c3t: - 25/1298 /home/runner/work/c3c/c3c/test/test_suite/slices/slice_len_error.c3: Passed. - 26/1298 /home/runner/work/c3c/c3c/test/test_suite/slices/slice_optional_index.c3t: Passed....
With `--no-terminal` I get this: ``` - 1291/0 /Users/lerno/Projects/c3c/test/test_suite/precedence/required_parens.c3: - 1292/1 /Users/lerno/Projects/c3c/test/test_suite/lexing/invalid_hex_in_hexarray.c3: - 1293/2 /Users/lerno/Projects/c3c/test/test_suite/lexing/expected_directive.c3: - 1294/3 /Users/lerno/Projects/c3c/test/test_suite/lexing/no_builtin.c3: - 1295/4 /Users/lerno/Projects/c3c/test/test_suite/lexing/too_long_ident.c3: - 1296/5 /Users/lerno/Projects/c3c/test/test_suite/lexing/invalid_hex_in_hexarray2.c3: - 1297/6 /Users/lerno/Projects/c3c/test/test_suite/interfaces/interface_multi.c3: - 1298/7 /Users/lerno/Projects/c3c/test/test_suite/interfaces/interface_test.c3:...
Oddly enough I get this even with --no-terminal: ``` Found 8 tests: 0.0% (0 / 8) passed (0 skipped, 0 failed). ``` It's just placed as an stderr output.
This is on a terminal not recognizing ansi, this shows where that output suddenly appears: ``` [Testing: 1/1299 | Passed: 0 | Failed: 0] [Testing: 2/1299 | Passed: 0 |...
For this `[Testing: 1/1299 | Passed: 0 | Failed: 0]` ansi-based output, consider instead something like: `Test progress: [XXXXXXXXXXXXX------] 25% complete (2 failed) - Testing: foo.c3`
I've fixed CLion so it's ok, and tweaked the output. But for --no-terminal I want output for each as soon as it is done, if this means you have to...
I want to add that the reason is that sometimes even the test runner crashes, and it's important to narrow down where. Also, seeing the progress is useful in some...
It's probably sufficient to just use the first one I listed: 1. Increment the counter (and print) when a new test is started. 2. Increment the error counter when a...
If we have three tests all ok: ``` - 1/0 - test1.c3 - 2/0 - test2.c3 - 3/0 - test3.c3 Found 3 tests: 100.0% (3 / 3) passed (0 skipped,...
Do you have time to work on this today you think?