Merge lp:~salgado/offspring/test-runner into lp:offspring
Proposed by
Guilherme Salgado
Status: | Merged |
---|---|
Merged at revision: | 84 |
Proposed branch: | lp:~salgado/offspring/test-runner |
Merge into: | lp:offspring |
Diff against target: |
86 lines (+30/-11) 4 files modified
Makefile (+9/-0) docs/HACKING (+21/-0) lib/offspring/master/tests.py (+0/-6) lib/offspring/slave/tests.py (+0/-5) |
To merge this branch: | bzr merge lp:~salgado/offspring/test-runner |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Offspring Hackers | Pending | ||
Review via email: mp+74674@code.launchpad.net |
Description of the change
Add a shell script and instructions to run the test suite.
The script uses nose to run the non-django tests and django's standard test
runner for any tests we put under lib/offspring/
Currently the new script doesn't expect any arguments but in the future we can
extend it so that users can specify a subset of the tests to run.
To post a comment you must log in.
On Thu, Sep 8, 2011 at 3:54 PM, Guilherme Salgado <
<email address hidden>> wrote:
<snip>
> === added directory 'lib/offspring/ tests' bin/nosetests -e 'queuemanager.*' offspring- web test queuemanager offspring. web.settings_ test
> === added file 'test.sh'
> --- test.sh 1970-01-01 00:00:00 +0000
> +++ test.sh 2011-09-08 19:53:46 +0000
> @@ -0,0 +1,6 @@
> +#!/bin/sh
> +
> +# Run all tests, excluding the ones under web.queuemanager.
> +.virtualenv/
> +# Run the tests under web.queuemanager.
> +./bin/
> --settings=
>
Is there any reason not to just add a new Makefile rule called 'test' to do
this? That way you can even make it make sure everything is setup plus
install nose.
Also, is there any benefit to using nose over updating setup.py so that you
can just run './setup.py test'?