forked from linkedin/iris
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Combine code coverage from unit and integration tests. Now we know that the full code coverage for iris is really 48% instead of like 25%. This is done through `make combined-cov` which travis now runs. - Bail from the e2e coverage tests if we can't start the coverage server, which will be the case if iris-api is already running outside of the e2e tests. (Common on local development) - Akin to that, kill the gunicorn process so the coverage tests are able to spawn another instance of iris-api which will keep track of the code paths which are run. - Fix a gevent issue (we weren't monkey patching) in the test server that is ran during the e2e code coverage. This was causing some of the tests to hang. - Skip the notification RPC test if sender is not running. - Show the e2etests as they run so we can know which tests were skipped by looking at the jenkins logs.
- Loading branch information
Showing
5 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
#!/bin/bash | ||
CURDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
cd $(dirname ${CURDIR}) | ||
if [ ! -z "$SUPPORT_COMBINED_COVERAGE" ]; then | ||
export COVERAGE_FILE=.coverage.e2e | ||
fi | ||
coverage run --source=iris src/iris/bin/run_server.py configs/config.dev.yaml &>/dev/null & | ||
pid=$! | ||
sleep 2 | ||
py.test test/e2etest.py | ||
if ! kill -0 "$pid" ; then | ||
echo Server failed to start. Bailing. | ||
exit 1 | ||
fi | ||
py.test -v test/e2etest.py | ||
sleep 1 | ||
/bin/kill -INT $pid | ||
coverage report -m | ||
if [ -z "$SUPPORT_COMBINED_COVERAGE" ]; then | ||
coverage report -m | ||
fi |