Skip to content
Snippets Groups Projects
Commit 3306878c authored by Nathaniel Kofalt's avatar Nathaniel Kofalt
Browse files

Merge pull request #104 from scitran/unit-test-updates

Testing infra updates
parents 3d84ddf4 ae959cfa
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
(
cd `git rev-parse --show-toplevel`
cd "$( dirname "${BASH_SOURCE[0]}" )/.."
pip install -r requirements.txt
)
......@@ -3,15 +3,15 @@
unit_test_path=test/unit_tests/
code_path=api/
cd "$( dirname "${BASH_SOURCE[0]}" )/.."
(
case "$1-$2" in
unit-|unit---ci)
cd `git rev-parse --show-toplevel`
PYTHONPATH=. py.test --cov=api --cov-report=term-missing $unit_test_path
;;
unit---watch)
cd `git rev-parse --show-toplevel`
PYTHONPATH=. ptw $unit_test_path $code_path -- $unit_test_path
PYTHONPATH=. ptw $unit_test_path $code_path --poll -- $unit_test_path
;;
integration-|integration---ci|integration---watch)
echo "Not implemented yet"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment