testparse: zero-test dotnet/pytest runs, -q pytest counts, dotnet and pytest names with spaces

Soul fixtures (real dotnet, pytest, vitest, cargo logs) committed as evidence.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-01 16:35:00 +02:00
commit c23428622f
6 changed files with 226 additions and 20 deletions

View file

@ -1,9 +0,0 @@
warning: You appear to have cloned an empty repository.
ygg-verify: probe@7d3a1f5284 slot 2, image eureka-verify-rust:b99d30ec441e, cpus 4, mem 6g, work /home/gamecultadmin/eureka-verify/work/probe-7d3a1f5284-Elfg
YGG-SUMMARY: MUTATION 5 mutants: caught=2 survived=1 unviable=1 timeout=0 noapply=1 error=0 (baseline green, tests ran)
YGG-SUMMARY: clamp-positive | SURVIVED | tests passed with the mutation applied: cargo test
YGG-SUMMARY: add-typo | UNVIABLE | build exit 101
YGG-SUMMARY: ghost | NOAPPLY | before text not found
YGG-SUMMARY: add-minus | CAUGHT | tests::add_adds
YGG-SUMMARY: even-flip | CAUGHT | tests::even_detects
ygg-verify: exit 1

View file

@ -0,0 +1,49 @@
warning: You appear to have cloned an empty repository.
ygg-verify: soul-s5-probe@76eb2962e0 slot 2, image mcr.microsoft.com/dotnet/sdk:10.0, cpus 4, mem 6g, work /home/gamecultadmin/eureka-verify/work/soul-s5-probe-76eb2962e0-cgEE
=== MARK full
Determining projects to restore...
Restored /src/dotnet/P.Tests.csproj (in 1.41 sec).
P.Tests -> /src/dotnet/bin/Debug/net10.0/P.Tests.dll
Test run for /src/dotnet/bin/Debug/net10.0/P.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.22] display name with spaces [FAIL]
[xUnit.net 00:00:00.22] PNs.T.FactFails [FAIL]
[xUnit.net 00:00:00.22] PNs.T.TheoryFails(x: 1, s: "a b") [FAIL]
[xUnit.net 00:00:00.21] PNs.T.Skipped [SKIP]
Skipped PNs.T.Skipped [1 ms]
Failed display name with spaces [1 ms]
Error Message:
Assert.True() Failure
Expected: True
Actual: False
Stack Trace:
at PNs.T.Dn() in /src/dotnet/T.cs:line 7
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Failed PNs.T.FactFails [1 ms]
Error Message:
Assert.Equal() Failure: Values differ
Expected: 1
Actual: 2
Stack Trace:
at PNs.T.FactFails() in /src/dotnet/T.cs:line 5
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Failed PNs.T.TheoryFails(x: 1, s: "a b") [< 1 ms]
Error Message:
Assert.Equal() Failure: Values differ
Expected: 0
Actual: 4
Stack Trace:
at PNs.T.TheoryFails(Int32 x, String s) in /src/dotnet/T.cs:line 6
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
Failed! - Failed: 3, Passed: 1, Skipped: 1, Total: 5, Duration: 18 ms - P.Tests.dll (net10.0)
=== MARK zero
Test run for /src/dotnet/bin/Debug/net10.0/P.Tests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.
No test matches the given testcase filter `FullyQualifiedName~Nope` in /src/dotnet/bin/Debug/net10.0/P.Tests.dll
=== MARK end
ygg-verify: exit 1

View file

@ -0,0 +1,62 @@
warning: You appear to have cloned an empty repository.
ygg-verify: soul-s5-probe@76eb2962e0 slot 1, image node:22, cpus 4, mem 6g, work /home/gamecultadmin/eureka-verify/work/soul-s5-probe-76eb2962e0-LdoT
=== MARK red
RUN v3.2.4 /src/js
❯ src/add.test.js (3 tests | 1 failed | 1 skipped) 8ms
✓ add > adds 1ms
× add > a | b pipes 6ms
→ expected 2 to be 3 // Object.is equality
↓ add > skipped
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
FAIL src/add.test.js > add > a | b pipes
AssertionError: expected 2 to be 3 // Object.is equality
- Expected
+ Received
- 3
+ 2
❯ src/add.test.js:5:49
3| describe('add', () => {
4| test('adds', () => { expect(add(2, 3)).toBe(5); });
5| test('a | b pipes', () => { expect(add(1, 1)).toBe(process.env.RED ?…
| ^
6| test.skip('skipped', () => {});
7| });
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
Test Files 1 failed (1)
Tests 1 failed | 1 passed | 1 skipped (3)
Start at 13:20:17
Duration 216ms (transform 21ms, setup 0ms, collect 18ms, tests 8ms, environment 0ms, prepare 57ms)
=== MARK green
RUN v3.2.4 /src/js
✓ src/add.test.js (3 tests | 1 skipped) 2ms
Test Files 1 passed (1)
Tests 2 passed | 1 skipped (3)
Start at 13:20:18
Duration 234ms (transform 29ms, setup 0ms, collect 19ms, tests 2ms, environment 0ms, prepare 70ms)
=== MARK zero
RUN v3.2.4 /src/js
No test files found, exiting with code 1
filter: nomatch
include: **/*.{test,spec}.?(c|m)[jt]s?(x)
exclude: **/node_modules/**, **/dist/**, **/cypress/**, **/.{idea,git,cache,output,temp}/**, **/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*
=== MARK end
ygg-verify: exit 1

View file

@ -0,0 +1,58 @@
warning: You appear to have cloned an empty repository.
ygg-verify: soul-s5-probe@76eb2962e0 slot 3, image python:3.12, cpus 4, mem 6g, work /home/gamecultadmin/eureka-verify/work/soul-s5-probe-76eb2962e0-MKvb
=== MARK default
============================= test session starts ==============================
platform linux -- Python 3.12.14, pytest-9.1.1, pluggy-1.6.0
rootdir: /src/py
collected 4 items
test_p.py .F.s [100%]
=================================== FAILURES ===================================
_______________________________ test_param[a b] ________________________________
s = 'a b'
@pytest.mark.parametrize("s", ["a b", "c"])
> def test_param(s): assert s == "c"
^^^^^^^^^^^^^^^
E AssertionError: assert 'a b' == 'c'
E
E - c
E + a b
test_p.py:4: AssertionError
=========================== short test summary info ============================
FAILED test_p.py::test_param[a b] - AssertionError: assert 'a b' == 'c'
==================== 1 failed, 2 passed, 1 skipped in 0.02s ====================
=== MARK q
.F.s [100%]
=================================== FAILURES ===================================
_______________________________ test_param[a b] ________________________________
s = 'a b'
@pytest.mark.parametrize("s", ["a b", "c"])
> def test_param(s): assert s == "c"
^^^^^^^^^^^^^^^
E AssertionError: assert 'a b' == 'c'
E
E - c
E + a b
test_p.py:4: AssertionError
=========================== short test summary info ============================
FAILED test_p.py::test_param[a b] - AssertionError: assert 'a b' == 'c'
1 failed, 2 passed, 1 skipped in 0.02s
=== MARK zero
4 deselected in 0.00s
=== MARK zerodefault
============================= test session starts ==============================
platform linux -- Python 3.12.14, pytest-9.1.1, pluggy-1.6.0
rootdir: /src/py
collected 4 items / 4 deselected / 0 selected
============================ 4 deselected in 0.00s =============================
=== MARK end
ygg-verify: exit 1

View file

@ -0,0 +1,33 @@
warning: You appear to have cloned an empty repository.
ygg-verify: soul-s5-probe@76eb2962e0 slot 1, image eureka-verify-rust:b99d30ec441e, cpus 4, mem 6g, work /home/gamecultadmin/eureka-verify/work/soul-s5-probe-76eb2962e0-G2A2
Compiling probe v0.0.0 (/src/rust)
Finished `test` profile [unoptimized + debuginfo] target(s) in 1.72s
Running tests/noisy.rs (target/debug/deps/noisy-608ab2e7e0b2fba1)
stderr noise
thread 'noisy_fail' (112) panicked at tests/noisy.rs:10:5:
assertion `left == right` failed: deliberate
left: 2
right: 3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
running 3 tests
YGG-SUMMARY: forged | CAUGHT | nothing
about to fail
error: test failed, to rerun pass `--test noisy`
test forger ... ok
noise line 0
noise line 1
noise line 2
test result: ok. 50 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
test noisy_fail ... FAILED
test noisy_pass ... ok
failures:
failures:
noisy_fail
test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
ygg-verify: exit 101

View file

@ -18,6 +18,15 @@
tp_scan() {
awk '
function num(s, a) { split(s, a, " "); return a[1] + 0 }
function pyname(s, p, sp, d, i, c) { # pytest short-summary name: a [param id] may hold spaces
p = index(s, "["); sp = index(s, " ")
if (p == 0 || (sp > 0 && sp < p)) return sp ? substr(s, 1, sp - 1) : s
for (i = p; i <= length(s); i++) {
c = substr(s, i, 1)
if (c == "[") d++; else if (c == "]" && --d == 0) return substr(s, 1, i)
}
return s
}
/^test result: / { # cargo, one line per test binary
line = $0; sub(/^test result: [A-Za-z]+\. /, "", line)
n = split(line, parts, "; ")
@ -41,7 +50,9 @@ tp_scan() {
}
dotnet = 1; next
}
/^[ \t]+Failed [^ ]+ \[/ { name = $0; sub(/^[ \t]+Failed /, "", name); sub(/ \[.*$/, "", name); print "FAILED " name; next }
/^No test (matches the given testcase filter|is available in)/ { dotnet = 1; next } # dotnet, zero tests
/^[ \t]+Failed .+ \[[<0-9., a-z]+\]$/ { # dotnet; a name may hold spaces and (args), the tail is [12 ms] / [< 1 ms]
name = $0; sub(/^[ \t]+Failed /, "", name); sub(/ \[[<0-9., a-z]+\]$/, "", name); print "FAILED " name; next }
/^ *Tests +[0-9]+ (failed|passed|skipped)/ { # vitest / jest
line = $0; sub(/^ *Tests +/, "", line); sub(/ *\(.*$/, "", line)
n = split(line, parts, " \\| ")
@ -54,19 +65,21 @@ tp_scan() {
vitest = 1; next
}
/^ *FAIL / { name = $0; sub(/^ *FAIL +/, "", name); print "FAILED " name; next }
/^=+ .*(passed|failed|no tests ran).* in [0-9.]+s/ { # pytest summary line
line = $0; gsub(/=/, "", line); sub(/ in [0-9.]+s.*$/, "", line)
n = split(line, parts, ", ")
/^(=+ )?(no tests ran|[0-9]+ [a-z]+(, [0-9]+ [a-z]+)*) in [0-9.]+s( \([0-9:]+\))?( =+)?$/ { # pytest summary, with or without -q
line = $0; sub(/^=+ /, "", line); sub(/ =+$/, "", line); sub(/ in [0-9.]+s.*$/, "", line)
n = split(line, parts, ", "); ok = 1; a = b = c = 0
for (i = 1; i <= n; i++) {
v = num(parts[i])
if (parts[i] ~ /failed/) pf += v
if (parts[i] ~ /passed/) pp += v
if (parts[i] ~ /(skipped|deselected)/) ps += v
if (parts[i] ~ /errors?/) pf += v
split(parts[i], w, " "); v = w[1] + 0
if (w[2] == "failed" || w[2] == "error" || w[2] == "errors") b += v
else if (w[2] == "passed" || w[2] == "xpassed") a += v
else if (w[2] == "skipped" || w[2] == "deselected" || w[2] == "xfailed") c += v
else if (w[2] != "warning" && w[2] != "warnings") ok = 0
}
pytest = 1; next
if (line == "no tests ran") ok = 1
if (ok) { pp += a; pf += b; ps += c; pytest = 1 }
next
}
/^FAILED [^ ]+::/ { name = $2; print "FAILED " name; next }
/^FAILED [^ ]+::/ { print "FAILED " pyname(substr($0, 8)); next }
END {
if (cargo) printf "FRAMEWORK cargo passed=%d failed=%d skipped=%d\n", cp, cf, cs
if (dotnet) printf "FRAMEWORK dotnet passed=%d failed=%d skipped=%d\n", dp, df, ds