Skip to content

Commit e8b475d

Browse files
committed
chore(make): include tests/golden in test and test-all targets
Separate pytest invocation so the corpus harness doesn't enter the samcli coverage calculation.
1 parent dde8373 commit e8b475d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ test:
2929
# Run unit tests (excluding cfn_language_extensions) and fail if coverage falls below 94%
3030
@echo "NOTE: Excluding cfn_language_extensions tests. Use 'make test-all' for full coverage."
3131
pytest --cov samcli --cov schema --cov-report term-missing --cov-fail-under 94 tests/unit --ignore=tests/unit/lib/cfn_language_extensions --cov-config=.coveragerc_no_lang_ext
32+
# Golden-template suite runs as a separate pytest invocation so it
33+
# does not enter the samcli coverage calculation above.
34+
pytest tests/golden
3235

3336
test-lang-ext:
3437
# Run cfn_language_extensions unit tests with coverage
@@ -37,6 +40,9 @@ test-lang-ext:
3740
test-all:
3841
# Run all unit tests including cfn_language_extensions
3942
pytest --cov samcli --cov schema --cov-report term-missing --cov-fail-under 94 tests/unit
43+
# Golden-template suite runs as a separate pytest invocation so it
44+
# does not enter the samcli coverage calculation above.
45+
pytest tests/golden
4046

4147
test-cov-report:
4248
# Run all unit tests with html coverage report

0 commit comments

Comments
 (0)