Mercurial > nosedjango
comparison examples/README.TXT @ 4:20bca08c0828
ignore .orig files from hg revert
added a test module with doctests in it
author | Victor Ng <victor@monkeybean.ca> |
---|---|
date | Thu, 28 Aug 2008 10:18:23 -0400 |
parents | b761c26773a3 |
children | 8d0793b2358b |
comparison
equal
deleted
inserted
replaced
3:b761c26773a3 | 4:20bca08c0828 |
---|---|
1 If you change directory into the 'project' directory, you should be able to | 1 If you change directory into the 'project' directory, you should be able to |
2 run the nose test runner and get reasonable results. | 2 run the nose test runner and get reasonable results. |
3 | 3 |
4 Note that you *won't* be running your doctests unless you tell nose to do so. | |
4 | 5 |
5 Something like this: | 6 As usual, you need to tell nose to run doctest test strings in modules that |
7 contain standard test classes. | |
6 | 8 |
7 C:\dev\nosedjango\examples\project>nosetests -v --with-django | 9 A successful run should hit *7* test cases. |
10 | |
11 C:\dev\nosedjango\examples\project>nosetests -v --with-django --with-doctest --d | |
12 octest-tests --doctest-tests | |
13 Doctest: project.zoo.models ... ok | |
14 Doctest: project.zoo.models.Zoo ... ok | |
15 Doctest: project.zoo.models.Zoo.__str__ ... ok | |
16 Doctest: project.zoo.models.func ... ok | |
17 This is just a stub for a regular test method ... ok | |
18 Doctest: project.zoo.test_foo.blah ... ok | |
8 project.tests.test_views.test_view_index ... ok | 19 project.tests.test_views.test_view_index ... ok |
9 | 20 |
10 ---------------------------------------------------------------------- | 21 ---------------------------------------------------------------------- |
11 Ran 1 test in 0.047s | 22 Ran 7 tests in 0.562s |
12 | 23 |
13 OK | 24 OK |
14 Destroying test database... | 25 Destroying test database... |
15 | |
16 C:\dev\nosedjango\examples\project> | |
17 | |
18 |