Skip to content

Commit d0d610e

Browse files
committed
docs: note CI override FORTCOV_ALLOW_AUTOTEST for auto-test bridge
1 parent f8ff37c commit d0d610e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/coverage_workflow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ By default, `fortcov` analyzes existing `.gcov` files and does not invoke
7171
`gcov` or run your tests. Use the built-in bridge `--gcov` (alias:
7272
`--discover-and-gcov`) to auto-discover FPM/CMake build directories, run under
7373
coverage, generate `.gcov`, and then analyze them.
74+
75+
Test-environment guard: When `fortcov` detects it is running under a test
76+
harness (e.g., `fpm test`), it skips auto-running tests to avoid recursion.
77+
In controlled CI jobs where this is desired, set the environment variable
78+
`FORTCOV_ALLOW_AUTOTEST=1` to explicitly allow the auto-test bridge.

0 commit comments

Comments
 (0)