Mercurial > nosedjango
annotate 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 |
rev | line source |
---|---|
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
1 If you change directory into the 'project' directory, you should be able to |
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
2 run the nose test runner and get reasonable results. |
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
3 |
4
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
4 Note that you *won't* be running your doctests unless you tell nose to do so. |
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
5 |
4
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
6 As usual, you need to tell nose to run doctest test strings in modules that |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
7 contain standard test classes. |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
8 |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
9 A successful run should hit *7* test cases. |
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
10 |
4
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
11 C:\dev\nosedjango\examples\project>nosetests -v --with-django --with-doctest --d |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
12 octest-tests --doctest-tests |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
13 Doctest: project.zoo.models ... ok |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
14 Doctest: project.zoo.models.Zoo ... ok |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
15 Doctest: project.zoo.models.Zoo.__str__ ... ok |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
16 Doctest: project.zoo.models.func ... ok |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
17 This is just a stub for a regular test method ... ok |
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
18 Doctest: project.zoo.test_foo.blah ... ok |
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
19 project.tests.test_views.test_view_index ... ok |
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
20 |
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
21 ---------------------------------------------------------------------- |
4
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
22 Ran 7 tests in 0.562s |
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
23 |
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
24 OK |
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
25 Destroying test database... |