You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CONTRIBUTING.rst
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,15 +115,14 @@ Different types of tests
115
115
- ``make test_mysql``: Runs the tests on the mysql database
116
116
- ``make testall``: runs the tests on all 4 database types: sqlite (in memory), postgresql, MySQL-MyISAM and MySQL-InnoDB
117
117
- ``green``: runs the same tests as ``make test``, ensures the green plugin works
118
-
- ``nose2 --plugin tortoise.contrib.test.nose2 --db-module tests.testmodels --db-url sqlite://:memory: ``: same test as ``make test`` , ensures the nose2 plugin works
- Some tests always run regardless of what test suite you are running (the connection tests for mysql and postgres for example, you don't need a database running as it doesn't actually connect though)
124
123
- Some tests use hardcoded databases (usually sqlite) for testing, regardless of what DB url you specified.
125
124
- The postgres driver does not work under Pypy so those tests will be skipped if you are running under pypy
126
-
- You can run only specific tests by running `` py.test <testfiles>`` or ``green -s 1 <testfile>``
125
+
- You can run only specific tests by running ``pytest <testfiles>`` or ``green -s 1 <testfile>``
127
126
- If you want a peek under the hood of test that hang to debug try running them with ``green -s 1 -vv -d -a <test>``
0 commit comments