3 tests with fragile or vacuous behaviour:
-
tests/integration/oscat-gpp-compile.test.ts second test silently returns (not skips) if output from the first test is missing — can pass vacuously without running anything. Fix: use expect.fail() or it.skip().
-
tests/library/codesys-import.test.ts — "V3 POU counts are comparable to V2.3" asserts expect(v3fn).toBe(v23fn) (exact equality of function counts between two different parsers). Brittle — breaks if either parser is updated. Fix: use toBeGreaterThan(0) or a tolerance check.
-
tests/semantic/located-variables.test.ts — "should error on located variable in function block" asserts e.message.includes('FUNCTION_BLOCK'). Fragile string-contains on error message. Fix: assert on error code/type instead.
3 tests with fragile or vacuous behaviour:
tests/integration/oscat-gpp-compile.test.tssecond test silentlyreturns (not skips) if output from the first test is missing — can pass vacuously without running anything. Fix: useexpect.fail()orit.skip().tests/library/codesys-import.test.ts— "V3 POU counts are comparable to V2.3" assertsexpect(v3fn).toBe(v23fn)(exact equality of function counts between two different parsers). Brittle — breaks if either parser is updated. Fix: usetoBeGreaterThan(0)or a tolerance check.tests/semantic/located-variables.test.ts— "should error on located variable in function block" assertse.message.includes('FUNCTION_BLOCK'). Fragile string-contains on error message. Fix: assert on error code/type instead.