Skip to content

Commit

Permalink
change coverage to test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu authored and Ubuntu committed Nov 30, 2018
1 parent c9373ce commit 13b3364
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ before_install:
script:
- ./functional_tests/biodemo-test.sh -p biodemo -d functional_tests/test_data
- ./.travis/unit-test.sh
- codecov
- codecov
- coverage combine .coverage functional_tests/test_data/.coverage
4 changes: 3 additions & 1 deletion functional_tests/biodemo-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ function test_stdout_exit {
echo "Test exit status failed: $1"
echo "Actual exit status: $exit_status"
echo "Expected exit status: $expected_exit_status"
fi
fi
eval "coverage run ${1/$test_program/$(which $test_program)}"
}

# Run a command and check that the exit status is
Expand All @@ -135,6 +136,7 @@ function test_exit_status {
echo "Actual exit status: $exit_status"
echo "Expected exit status: $expected_exit_status"
fi
eval "coverage run ${1/$test_program/$(which $test_program)}"
}


Expand Down

0 comments on commit 13b3364

Please sign in to comment.