Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Refactor run tests #114

Merged
merged 3 commits into from
Jul 9, 2013
Merged

Refactor run tests #114

merged 3 commits into from
Jul 9, 2013

Conversation

robyoung
Copy link
Contributor

@robyoung robyoung commented Jul 4, 2013

  • In development run ./run_tests.sh
  • jenkins.sh uses ./run_tests.sh
  • .travis uses ./run_tests.sh

Simples!

This assumes that you're using virtualenvwrapper in development (or at least have your WORKON_HOME environment variable set). If you're not then you will need to be in a virtualenv before executing ./run_tests.sh

This depends on #113

robyoung and others added 2 commits July 4, 2013 13:59
- In development run `./run_tests.sh`
- `jenkins.sh` uses `./run_tests.sh`
- `.travis` uses `./run_tests.sh`

Simples!

This assumes that you're using virtualenvwrapper in development (or at
least have your `WORKON_HOME` environment variable set). If you're not
then you will need to be in a virtualenv before executing
`./run_tests.sh`
display_result $? 1 "Unit tests"

behave --stop --tags=-wip
display_result $? 2 "Feature tests"

"$basedir/pep-it.sh"
./pep-it.sh | tee pep8.out
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lines with piped commands requires that the script sets the pipefail option:
set -o pipefail

Otherwise the variable $? always holds the exit status of the last command, which means a failure of pep-it.sh would be ignored.

@maxfliri
Copy link
Contributor

maxfliri commented Jul 8, 2013

👍

We have duplicates of these scripts in all of out python projects. As a further improvement, we could extract these in something reusable by multiple projects, like a pip package.

maxfliri added a commit that referenced this pull request Jul 9, 2013
@maxfliri maxfliri merged commit 33910df into master Jul 9, 2013
@maxfliri maxfliri deleted the refactor-run-tests branch July 9, 2013 13:10
maxfliri added a commit that referenced this pull request Aug 23, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants