New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests #80
Conversation
./test.sh: line 8: nosetests: command not found |
tests/run_unit_tests.sh | ||
|
||
count=$? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jar398, here's the line in question
I'm not sure how you got that using the latest version of tests.sh, nosetests used to be called on line 8, but now it isn't called until inside run_service_tests.sh, and on line 19 of tests.sh it is checked for and installed by virtualenv if it is missing... |
I just updated taxomachine to the tests branch, and ran the top level test.sh. It still says |
I am confused. test.sh should not be doing anything related to nosetests on line 8, and it does indeed make an effort to check make sure that nosetests is defined, on line 19, which is also the first occurrence of the string 'nose' in the file. Am I overlooking something? As I indicated earlier in this comment thread, line 8 in the current version of test.sh in this branch should be accessing the count of failed unit tests, not doing anything related to nosetests. E.g. Meconopsis:taxomachine cody$ pwd
/Users/cody/phylo/taxomachine
Meconopsis:taxomachine cody$ git status
On branch tests
nothing to commit, working directory clean
Meconopsis:taxomachine cody$ git pull origin tests
From github.com:opentreeoflife/taxomachine
* branch tests -> FETCH_HEAD
Already up-to-date.
Meconopsis:taxomachine cody$ head -n 8 test.sh
## java unit tests
echo "Running Java unit tests"
type mvn >/dev/null 2>&1 || { echo >&2 "maven is required for testing but could not be found. Aborting."; exit 1; }
tests/run_unit_tests.sh
count=$?
Meconopsis:taxomachine cody$ grep -n nose test.sh
19:type nosetests >/dev/null 2>&1 || { echo "installing test dependencies"; ./install_dependencies_for_tests.sh; }
Meconopsis:taxomachine cody$ |
Did you push your tests branch to github? Here's what I see: bash-3.2$ ot17 The programs included with the Debian GNU/Linux system are free software; Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent set the TAXOMACHINE_SERVER environment variable in your shell to pointthe script at the right location, e.g.: TAXOMACHINE_SERVER=devapi.opentreeoflife.org/taxomachine # to runremotely against devapi TAXOMACHINE_SERVER=localhost:7476/db/data # to run locally on devapi[ -z "$TAXOMACHINE_SERVER" ] && TAXOMACHINE_SERVER='localhost:7474/db/data' On Thu, Oct 16, 2014 at 2:40 PM, Cody Hinchliff notifications@github.com
|
Yes, it has been pushed to github. That comment is attached to the test.sh On Thu, Oct 16, 2014 at 2:54 PM, Jonathan A Rees notifications@github.com
|
That was the problem, thanks. I've modified the git_refresh function in the I don't fully understand how 'git pull' works. Or 'git fetch' for that |
Changing tests as requested in #79, and general cleanup of installation/testing scripts.