Skip to content

Commit

Permalink
Add debug output in Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
atextor committed Mar 30, 2021
1 parent 1b7715e commit 3913826
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ jobs:
- name: Gradle Build
run: |-
source $HOME/.sdkman/bin/sdkman-init.sh
./gradlew clean test check nativeImagePass2 --stacktrace --no-daemon
./gradlew clean test check nativeImagePass2 --info --stacktrace --no-daemon
shell: bash
- name: Prepare Artifacts
run: mv cli/build/bin/owl owl-x86_64-windows-snapshot.exe
Expand Down
7 changes: 7 additions & 0 deletions cli/src/test/java/de/atextor/owlcli/DiagramCommandTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ public void testDiagramGeneration( final String testFileName ) throws IOExceptio
System.out.println( result.getStdOut() );
System.out.println( result.getStdErr() );

if ( result.getExitStatus() != 0 ) {
System.out.println( "Something went wrong:" );
System.out.println( "=== stdout ===" );
System.out.println( result.getStdOut() );
System.out.println( "=== stderr ===" );
System.out.println( result.getStdErr() );
}
assertThat( result.getExitStatus() ).isEqualTo( 0 );
assertThat( result.getStdOut() ).isEmpty();
assertThat( result.getStdErr() ).isEmpty();
Expand Down

0 comments on commit 3913826

Please sign in to comment.