22# Provides convenient shortcuts for running different test configurations
33
44.PHONY : help test test-all test-fast test-api test-jit test-no-jit test-consistency \
5- test-parallel test-no-coverage coverage-report coverage-html coverage-xml \
5+ test-parallel test-sequential test- no-coverage coverage-report coverage-html coverage-xml \
66 clean clean-coverage clean-reports install-deps lint check-deps
77
88# Default target
@@ -37,16 +37,16 @@ help: ## Show this help message
3737 @awk ' BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " $(GREEN)%-20s$(RESET) %s\n", $$1, $$2}' $(MAKEFILE_LIST )
3838 @echo " "
3939 @echo " $( BLUE) Examples:$( RESET) "
40- @echo " make test # Run all test suites with coverage and open report"
40+ @echo " make test # Run all test suites in parallel with coverage"
41+ @echo " make test-sequential # Run all test suites sequentially (slower)"
4142 @echo " make test-fast # Run only fast test suites"
4243 @echo " make test-api # Run only API tests"
43- @echo " make test-parallel # Run tests in parallel where possible"
4444 @echo " make coverage-html # Generate HTML coverage report"
4545
4646# Main test targets
47- test : # # Run all test suites with coverage and open report
48- @echo " $( BOLD) $( BLUE) Running all test suites...$( RESET) "
49- $(RUN_TESTS )
47+ test : # # Run all test suites with coverage and open report (in parallel)
48+ @echo " $( BOLD) $( BLUE) Running all test suites in parallel ...$( RESET) "
49+ $(RUN_TESTS ) --parallel
5050 @echo " $( BOLD) $( GREEN) Opening coverage report in browser...$( RESET) "
5151 @if [ -f test_reports/htmlcov/index.html ]; then \
5252 open test_reports/htmlcov/index.html 2> /dev/null || \
@@ -58,8 +58,12 @@ test: ## Run all test suites with coverage and open report
5858
5959test-all : test # # Alias for 'test' target
6060
61- test-only : # # Run all test suites with coverage (no browser)
62- @echo " $( BOLD) $( BLUE) Running all test suites...$( RESET) "
61+ test-only : # # Run all test suites with coverage (no browser, in parallel)
62+ @echo " $( BOLD) $( BLUE) Running all test suites in parallel...$( RESET) "
63+ $(RUN_TESTS ) --parallel
64+
65+ test-sequential : # # Run all test suites sequentially (no parallelization)
66+ @echo " $( BOLD) $( BLUE) Running all test suites sequentially...$( RESET) "
6367 $(RUN_TESTS )
6468
6569test-fast : # # Run only fast test suites (api_tests, dont_disable_jit)
@@ -75,7 +79,7 @@ test-no-coverage: ## Run all tests without coverage collection
7579 $(RUN_TESTS ) --no-coverage
7680
7781# Individual test suite targets
78- test-api : # # Run only API tests (tests/unit/ api_tests)
82+ test-api : # # Run only API tests (tests/api_tests)
7983 @echo " $( BOLD) $( BLUE) Running API tests...$( RESET) "
8084 $(RUN_TESTS ) --suite api_tests
8185
@@ -96,9 +100,9 @@ test-functional: ## Run functional/end-to-end tests
96100 $(RUN_TESTS ) --suite functional
97101
98102
99- test-all-suites : # # Run all test suites including functional tests
100- @echo " $( BOLD) $( BLUE) Running all test suites including functional...$( RESET) "
101- $(RUN_TESTS )
103+ test-all-suites : # # Run all test suites including functional tests (in parallel)
104+ @echo " $( BOLD) $( BLUE) Running all test suites including functional in parallel ...$( RESET) "
105+ $(RUN_TESTS ) --parallel
102106
103107# Coverage targets
104108coverage-report : # # Show coverage report in terminal
0 commit comments