Mercurial > nosedjango
diff 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 |
line wrap: on
line diff
--- a/examples/README.TXT Thu Aug 28 11:29:21 2008 -0400 +++ b/examples/README.TXT Thu Aug 28 11:44:53 2008 -0400 @@ -1,25 +1,48 @@ -If you change directory into the 'project' directory, you should be able to -run the nose test runner and get reasonable results. +The 'project' sample Django project was created using Django 1.0b1. -Note that you *won't* be running your doctests unless you tell nose to do so. +Using a more recent version of Django may cause problems. You've been +warned. + -As usual, you need to tell nose to run doctest test strings in modules that -contain standard test classes. +If you change directory into the 'project' directory, you should be +able to run the nose test runner and get reasonable results. -A successful run should hit *7* test cases. +Note that you *won't* be running your doctests unless you tell nose to +do so. + +As usual, you need to tell nose to run doctest test strings in modules +that contain standard test classes. + +A successful run should hit *11* test cases excercising : - C:\dev\nosedjango\examples\project>nosetests -v --with-django --with-doctest --d - octest-tests --doctest-tests - Doctest: project.zoo.models ... ok - Doctest: project.zoo.models.Zoo ... ok - Doctest: project.zoo.models.Zoo.__str__ ... ok - Doctest: project.zoo.models.func ... ok - This is just a stub for a regular test method ... ok - Doctest: project.zoo.test_foo.blah ... ok - project.tests.test_views.test_view_index ... ok + * race conditions between test cases that create objects in test + methods + * race conditions between test cases that create objects in + fixture loading + * doctests + * test functions + * mixes of doctests and test modules + * docstrings in models + +--- Sample test run below --- - ---------------------------------------------------------------------- - Ran 7 tests in 0.562s +C:\dev\nosedjango\examples\project>nosetests -v --with-django --with-doctest --doctest-tests --doctest-tests +doctest: project.zoo.models.zoo ... ok +Doctest: project.zoo.models.Zoo.__str__ ... ok +Doctest: project.zoo.models.func ... ok +This is just a stub for a regular test method ... ok +Doctest: project.zoo.test_doctest_modules.test_docstring ... ok +Doctest: project.zoo.test_doctest_modules.test_docstring ... ok +project.zoo.test_fixtures.TestFixture1.test_count ... ok +project.zoo.test_fixtures.TestFixture2.test_count ... ok +project.zoo.test_race.TestDBRace1.test1 ... ok +project.zoo.test_race.TestDBRace2.test1 ... ok +project.tests.test_views.test_view_index ... ok - OK - Destroying test database... +---------------------------------------------------------------------- +Ran 11 tests in 0.859s + +OK +Destroying test database... + +C:\dev\nosedjango\examples\project>