Skip to content

Commit

Permalink
Test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dariober committed Jul 26, 2024
1 parent 01e58d1 commit febb652
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ jobs:
java-version: '8'
- name: Build and Test
run: |
./gradlew build test jacocoTestReport -PexcludeTests=**/TravisExcludedTest*
cp ASCIIGenome build/libs/
cd src/test/java
chmod a+x integration_test.py
./integration_test.py
bash <(curl -s https://codecov.io/bash)
./gradlew test --tests samTextViewer.InteractiveInputTest.canHandleSessionNameNotFound
# ./gradlew build test jacocoTestReport -PexcludeTests=**/TravisExcludedTest*
# cp ASCIIGenome build/libs/
# cd src/test/java
# chmod a+x integration_test.py
# ./integration_test.py
# bash <(curl -s https://codecov.io/bash)
4 changes: 4 additions & 0 deletions src/test/java/samTextViewer/InteractiveInputTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ public void canHandleSessionNameNotFound()
TrackProcessor proc = this.gimmeTrackProcessor("chr7:1001-1800", 80);
InteractiveInput ip = new InteractiveInput(new ConsoleReader(), 0);
ProcessInput pi = this.processInput(ip, "session open -f test_data/session.yaml spam", proc);
System.out.println("START");
System.out.println("STDOUT:\n" + pi.stdout);
System.out.println("STDERR:\n" + pi.stderr);
System.out.println("DONE");
assertTrue(pi.stderr.contains("Cannot find session with name 'spam'"));
}

Expand Down

0 comments on commit febb652

Please sign in to comment.