Mercurial > nosedjango
comparison examples/README.TXT @ 6:8d0793b2358b
update testapp to django 1.0b1
author | Victor Ng <victor@monkeybean.ca> |
---|---|
date | Thu, 28 Aug 2008 11:44:53 -0400 |
parents | 20bca08c0828 |
children | 35178e70f1cd |
comparison
equal
deleted
inserted
replaced
5:22ae9aa457af | 6:8d0793b2358b |
---|---|
1 If you change directory into the 'project' directory, you should be able to | 1 The 'project' sample Django project was created using Django 1.0b1. |
2 run the nose test runner and get reasonable results. | |
3 | 2 |
4 Note that you *won't* be running your doctests unless you tell nose to do so. | 3 Using a more recent version of Django may cause problems. You've been |
4 warned. | |
5 | 5 |
6 As usual, you need to tell nose to run doctest test strings in modules that | |
7 contain standard test classes. | |
8 | 6 |
9 A successful run should hit *7* test cases. | 7 If you change directory into the 'project' directory, you should be |
8 able to run the nose test runner and get reasonable results. | |
10 | 9 |
11 C:\dev\nosedjango\examples\project>nosetests -v --with-django --with-doctest --d | 10 Note that you *won't* be running your doctests unless you tell nose to |
12 octest-tests --doctest-tests | 11 do so. |
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 | |
19 project.tests.test_views.test_view_index ... ok | |
20 | 12 |
21 ---------------------------------------------------------------------- | 13 As usual, you need to tell nose to run doctest test strings in modules |
22 Ran 7 tests in 0.562s | 14 that contain standard test classes. |
23 | 15 |
24 OK | 16 A successful run should hit *11* test cases excercising : |
25 Destroying test database... | 17 |
18 * race conditions between test cases that create objects in test | |
19 methods | |
20 * race conditions between test cases that create objects in | |
21 fixture loading | |
22 * doctests | |
23 * test functions | |
24 * mixes of doctests and test modules | |
25 * docstrings in models | |
26 | |
27 --- Sample test run below --- | |
28 | |
29 C:\dev\nosedjango\examples\project>nosetests -v --with-django --with-doctest --doctest-tests --doctest-tests | |
30 doctest: project.zoo.models.zoo ... ok | |
31 Doctest: project.zoo.models.Zoo.__str__ ... ok | |
32 Doctest: project.zoo.models.func ... ok | |
33 This is just a stub for a regular test method ... ok | |
34 Doctest: project.zoo.test_doctest_modules.test_docstring ... ok | |
35 Doctest: project.zoo.test_doctest_modules.test_docstring ... ok | |
36 project.zoo.test_fixtures.TestFixture1.test_count ... ok | |
37 project.zoo.test_fixtures.TestFixture2.test_count ... ok | |
38 project.zoo.test_race.TestDBRace1.test1 ... ok | |
39 project.zoo.test_race.TestDBRace2.test1 ... ok | |
40 project.tests.test_views.test_view_index ... ok | |
41 | |
42 ---------------------------------------------------------------------- | |
43 Ran 11 tests in 0.859s | |
44 | |
45 OK | |
46 Destroying test database... | |
47 | |
48 C:\dev\nosedjango\examples\project> |