File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed
src/test/java/io/github/simbo1905/json/schema Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 2020 MVN_CMD=" mvn"
2121fi
2222
23- timeout 120 $MVN_CMD test " $@ " 2>&1 | awk '
23+ echo " [INFO] Running: $MVN_CMD verify $@ "
24+
25+ timeout 120 $MVN_CMD verify " $@ " 2>&1 | awk '
2426BEGIN {
2527 scanning_started = 0
2628 compilation_section = 0
@@ -60,12 +62,12 @@ test_section {
6062
6163# Before test section starts, show important lines only
6264!test_section && scanning_started {
63- if (/INFO.*Scanning|INFO.*Building|INFO.*resources|INFO.*compiler|INFO.*surefire|ERROR|FAILURE/) {
65+ if (/INFO.*Scanning|INFO.*Building|INFO.*resources|INFO.*compiler|INFO.*surefire|INFO.*failsafe| ERROR|FAILURE/) {
6466 print
6567 }
6668 # Show compilation warnings/errors
6769 if (/WARNING.*COMPILATION|ERROR.*/) {
6870 print
6971 }
7072}
71- '
73+ '
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ Stream<DynamicTest> validateOpenRPCExamples() throws Exception {
5555 assertThat (jsons ).isNotEmpty ();
5656
5757 return jsons .stream ().map (path -> DynamicTest .dynamicTest (path .getFileName ().toString (), () -> {
58+ LOG .info (() -> "TEST: " + getClass ().getSimpleName () + "#" + path .getFileName ());
5859 String doc = Files .readString (path , StandardCharsets .UTF_8 );
5960 boolean expectedValid = !path .getFileName ().toString ().contains ("-bad-" );
6061 boolean actualValid = schema .validate (Json .parse (doc )).valid ();
Original file line number Diff line number Diff line change 2020 MVN_CMD=" mvn"
2121fi
2222
23- timeout 120 $MVN_CMD test " $@ " 2>&1 | awk '
23+ echo " [INFO] Running: $MVN_CMD verify $@ "
24+
25+ timeout 120 $MVN_CMD verify " $@ " 2>&1 | awk '
2426BEGIN {
2527 scanning_started = 0
2628 compilation_section = 0
@@ -60,12 +62,12 @@ test_section {
6062
6163# Before test section starts, show important lines only
6264!test_section && scanning_started {
63- if (/INFO.*Scanning|INFO.*Building|INFO.*resources|INFO.*compiler|INFO.*surefire|ERROR|FAILURE/) {
65+ if (/INFO.*Scanning|INFO.*Building|INFO.*resources|INFO.*compiler|INFO.*surefire|INFO.*failsafe| ERROR|FAILURE/) {
6466 print
6567 }
6668 # Show compilation warnings/errors
6769 if (/WARNING.*COMPILATION|ERROR.*/) {
6870 print
6971 }
7072}
71- '
73+ '
You can’t perform that action at this time.
0 commit comments