Mercurial > nosedjango
annotate examples/README.TXT @ 12:a6e52c3b64a8 tip
added a version code to nosedjango
author | Victor Ng <victor@monkeybean.ca> |
---|---|
date | Fri, 29 Aug 2008 14:10:47 -0400 |
parents | 35178e70f1cd |
children |
rev | line source |
---|---|
6
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
1 The 'project' sample Django project was created using Django 1.0b1. |
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
2 |
6
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
3 Using a more recent version of Django may cause problems. You've been |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
4 warned. |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
5 |
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
6 |
6
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
7 If you change directory into the 'project' directory, you should be |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
8 able to run the nose test runner and get reasonable results. |
4
20bca08c0828
ignore .orig files from hg revert
Victor Ng <victor@monkeybean.ca>
parents:
3
diff
changeset
|
9 |
6
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
10 Note that you *won't* be running your doctests unless you tell nose to |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
11 do so. |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
12 |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
13 As usual, you need to tell nose to run doctest test strings in modules |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
14 that contain standard test classes. |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
15 |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
16 A successful run should hit *11* test cases excercising : |
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
17 |
6
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
18 * race conditions between test cases that create objects in test |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
19 methods |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
20 * race conditions between test cases that create objects in |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
21 fixture loading |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
22 * doctests |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
23 * test functions |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
24 * mixes of doctests and test modules |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
25 * docstrings in models |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
26 |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
27 --- Sample test run below --- |
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
28 |
6
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
29 C:\dev\nosedjango\examples\project>nosetests -v --with-django --with-doctest --doctest-tests --doctest-tests |
9
35178e70f1cd
urls support in testcase objects
Victor Ng <victor@monkeybean.ca>
parents:
6
diff
changeset
|
30 |
35178e70f1cd
urls support in testcase objects
Victor Ng <victor@monkeybean.ca>
parents:
6
diff
changeset
|
31 Doctest: project.zoo.models.Zoo ... ok |
6
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
32 Doctest: project.zoo.models.Zoo.__str__ ... ok |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
33 Doctest: project.zoo.models.func ... ok |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
34 This is just a stub for a regular test method ... ok |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
35 Doctest: project.zoo.test_doctest_modules.test_docstring ... ok |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
36 Doctest: project.zoo.test_doctest_modules.test_docstring ... ok |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
37 project.zoo.test_fixtures.TestFixture1.test_count ... ok |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
38 project.zoo.test_fixtures.TestFixture2.test_count ... ok |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
39 project.zoo.test_race.TestDBRace1.test1 ... ok |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
40 project.zoo.test_race.TestDBRace2.test1 ... ok |
9
35178e70f1cd
urls support in testcase objects
Victor Ng <victor@monkeybean.ca>
parents:
6
diff
changeset
|
41 We're customizing the ROOT_URLCONF with zoo.urls, ... ok |
35178e70f1cd
urls support in testcase objects
Victor Ng <victor@monkeybean.ca>
parents:
6
diff
changeset
|
42 We're using the standard ROOT_URLCONF, so we need to ... ok |
35178e70f1cd
urls support in testcase objects
Victor Ng <victor@monkeybean.ca>
parents:
6
diff
changeset
|
43 testcase1 (project.zoo.tests.TestDjango) ... ok |
35178e70f1cd
urls support in testcase objects
Victor Ng <victor@monkeybean.ca>
parents:
6
diff
changeset
|
44 testcase2 (project.zoo.tests.TestDjango) ... ok |
3
b761c26773a3
Added comment file for running the example
Victor Ng <victor@monkeybean.ca>
parents:
diff
changeset
|
45 |
6
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
46 ---------------------------------------------------------------------- |
9
35178e70f1cd
urls support in testcase objects
Victor Ng <victor@monkeybean.ca>
parents:
6
diff
changeset
|
47 Ran 14 tests in 1.219s |
6
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
48 |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
49 OK |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
50 Destroying test database... |
8d0793b2358b
update testapp to django 1.0b1
Victor Ng <victor@monkeybean.ca>
parents:
4
diff
changeset
|
51 |
9
35178e70f1cd
urls support in testcase objects
Victor Ng <victor@monkeybean.ca>
parents:
6
diff
changeset
|
52 |