Skip to content

Commit d922b3e

Browse files
committed
Makefile tweak: JUnit jar is configurable (and more flexible).
1 parent 9eb5a38 commit d922b3e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

prism/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,10 @@ count_loc:
512512
###########
513513

514514
# Run all unit tests
515+
JUNIT_JAR = $(wildcard $(PRISM_LIB_DIR)/junit-platform-console-standalone-*.jar)
515516
unittests: make_tests
516517
# Provide Regex to match our test classes. If none is given, only certain test classes are excluded by default.
517-
$(JAVA) -jar lib/junit-platform-console-standalone.jar -cp classes --include-classname '^(Test.*|.+[.$$]Test.*|.+Tests?[.$$].+|.*Tests?)$$' -scan-classpath --details=summary
518+
$(JAVA) -jar $(JUNIT_JAR) -cp classes --include-classname '^(Test.*|.+[.$$]Test.*|.+Tests?[.$$].+|.*Tests?)$$' -scan-classpath --details=summary
518519

519520
# Run a single test case from the test suite (useful quick check that the build was ok)
520521
test:

0 commit comments

Comments
 (0)