Skip to content

Commit

Permalink
Improve Makefile targets for testing
Browse files Browse the repository at this point in the history
Since `make build` no longer compiles `qi-test`, this compiles the
necessary test modules before running tests. It also separates out the
`qi-probe` tests, and ensures that we run the full suite of tests in
CI.
  • Loading branch information
countvajhula committed Jan 1, 2025
1 parent db48273 commit db7fe61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Check Dependencies
run: make check-deps
- name: Run Tests
run: make test
run: make test-all
coverage:
needs: test
runs-on: ubuntu-latest
Expand Down
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,14 @@ clean-sdk:
check-deps:
raco setup --no-docs $(DEPS-FLAGS) $(PACKAGE-NAME)

test-all: test test-probe

# Suitable for both day-to-day dev and CI
# Note: we don't test qi-doc since there aren't any tests there atm
# and it also seems to make things extremely slow to include it.
test:
raco test -exp $(PACKAGE-NAME)-{lib,test,probe}
test: build
raco make -l qi/tests/qi -v
raco test -exp $(PACKAGE-NAME)-{lib,test}

test-flow:
racket -y $(PACKAGE-NAME)-test/tests/flow.rkt
Expand Down Expand Up @@ -251,4 +254,4 @@ performance-report:
performance-regression-report:
@racket $(PACKAGE-NAME)-sdk/benchmarks/report.rkt -r $(REF)

.PHONY: help install remove build build-docs build-all clean check-deps test test-flow test-on test-threading test-switch test-definitions test-macro test-util test-expander test-compiler test-probe test-with-errortrace errortrace errortrace-flow errortrace-on errortrace-threading errortrace-switch errortrace-definitions errortrace-macro errortrace-util errortrace-probe docs cover coverage-check coverage-report cover-coveralls profile new-benchmarks new-benchmarks-preview benchmark-local benchmark-loading benchmark-selected-forms benchmark-competitive benchmark-nonlocal benchmark performance-report performance-regression-report
.PHONY: help install remove build build-docs build-all clean check-deps test-all test test-flow test-on test-threading test-switch test-definitions test-macro test-util test-expander test-compiler test-probe test-with-errortrace errortrace errortrace-flow errortrace-on errortrace-threading errortrace-switch errortrace-definitions errortrace-macro errortrace-util errortrace-probe docs cover coverage-check coverage-report cover-coveralls profile new-benchmarks new-benchmarks-preview benchmark-local benchmark-loading benchmark-selected-forms benchmark-competitive benchmark-nonlocal benchmark performance-report performance-regression-report

0 comments on commit db7fe61

Please sign in to comment.