Groundwork for mutation testing with PIT and werkcrappit.
Every spec ends in *UnitTest (no Spring, no real git/process), *RestTest (@WebMvcTest slice) or *IntegrationTest (full context, real git, processes, WireMock, containers): 55 / 9 / 14; 77 files renamed, file and class.
Gradle tasks unitTest (UnitTest + RestTest, 16 s test time) and integrationTest (40.5 s); test and CI unchanged.
TestNamingConventionUnitTest fails for a spec without a suffix.
AGENTS.md and the writing-tests skill describe the convention.
Found on the way: PIT's timeouts on Werkator came from its 4 s limit, not from the integration tests (323 → 2 timeouts at 20 s); that goes into the next PR together with PIT and werkcrappit.
Groundwork for mutation testing with PIT and werkcrappit.
- Every spec ends in `*UnitTest` (no Spring, no real git/process), `*RestTest` (`@WebMvcTest` slice) or `*IntegrationTest` (full context, real git, processes, WireMock, containers): 55 / 9 / 14; 77 files renamed, file and class.
- Gradle tasks `unitTest` (UnitTest + RestTest, 16 s test time) and `integrationTest` (40.5 s); `test` and CI unchanged.
- `TestNamingConventionUnitTest` fails for a spec without a suffix.
- AGENTS.md and the writing-tests skill describe the convention.
Found on the way: PIT's timeouts on Werkator came from its 4 s limit, not from the integration tests (323 → 2 timeouts at 20 s); that goes into the next PR together with PIT and werkcrappit.
CI on werkator.javagil.de: green (141 s).
PR-doc: `docs/prs/2026-10-01-PR#91-separate-unit-and-integration-tests.md`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Every spec now says by its suffix what it needs: *UnitTest (no Spring,
no real git or process), *RestTest (a @WebMvcTest slice) or
*IntegrationTest (full context, real git, processes, WireMock,
containers). unitTest runs the cheap half (16 s of test time),
integrationTest the expensive one (40.5 s); test still runs all.
TestNamingConventionUnitTest fails for a spec without a suffix. The
groundwork for mutation testing, which must run on the cheap half.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mi
merged commit a4c0e52265 into main2026-10-02 07:16:30 +02:00
mi
deleted branch separate-unit-and-integration-tests2026-10-02 07:16:30 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Groundwork for mutation testing with PIT and werkcrappit.
*UnitTest(no Spring, no real git/process),*RestTest(@WebMvcTestslice) or*IntegrationTest(full context, real git, processes, WireMock, containers): 55 / 9 / 14; 77 files renamed, file and class.unitTest(UnitTest + RestTest, 16 s test time) andintegrationTest(40.5 s);testand CI unchanged.TestNamingConventionUnitTestfails for a spec without a suffix.Found on the way: PIT's timeouts on Werkator came from its 4 s limit, not from the integration tests (323 → 2 timeouts at 20 s); that goes into the next PR together with PIT and werkcrappit.
CI on werkator.javagil.de: green (141 s).
PR-doc:
docs/prs/2026-10-01-PR#91-separate-unit-and-integration-tests.md🤖 Generated with Claude Code