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
* The [Google Cloud SDK](https://cloud.google.com/sdk/) installed. You
13
13
can do so with the following command:
@@ -50,29 +50,35 @@ If you want to run the Google App Engine tests, you will need:
50
50
51
51
### Test environments
52
52
53
-
We use [tox](https://tox.readthedocs.org/en/latest/) to configure
54
-
multiple python environments:
53
+
We use [nox](https://nox.readthedocs.org/en/latest/) to configure
54
+
multiple python sessions:
55
55
56
-
*``py27`` and ``py34`` contains tests for samples that run in a normal Python 2.7 pr 3.4 environment. This is everything outside of the ``appengine`` directory that isn't slow or flaky.
57
-
*``py27-all`` and ``py34-all`` runs all tests except for App Engine tests. This can time some time and some tests are flaky.
58
-
*``gae`` contains tests for samples that run only in Google App Engine. This is (mostly) everything in the ``appengine`` directory.
59
-
*``pep8`` just runs the linter.
56
+
*``tests`` contains tests for samples that run in a normal Python 2.7 or 3.4
57
+
environment. This is everything outside of the ``appengine`` directory. It's
58
+
parameterized to run all the tests using the 2.7 and 3.4 interpreters.
59
+
*``gae`` contains tests for samples that run only in Google App Engine. This is
60
+
(mostly) everything in the ``appengine`` directory.
61
+
*``lint`` just runs the linter.
60
62
61
-
To run tests for a particular environment, invoke tox with the ``-e``
62
-
flag:
63
+
To see a list of the available sessions:
63
64
64
-
tox -e py27
65
+
nox -l
65
66
66
-
To run one particular test suite or provide additional parameters to
67
-
``py.test``, invoke tox like this:
67
+
To run tests for a particular session, with a particular parameter, invoke nox
68
+
with the ``-s`` flag:
68
69
69
-
toxe -e py27 -- storage/api
70
+
nox -s "tests(interpreter='python2.7')"
70
71
71
-
### Adding new tests
72
+
To run one particular session or provide additional parameters to ``py.test``,
73
+
invoke nox like this:
74
+
75
+
nox -s tests -- storage/api
72
76
73
-
When adding a new top-level directory, be sure to edit ``.coveragerc`` and ``tox.ini`` to include it in tests and coverage reporting.
77
+
### Adding new tests
78
+
When adding a new top-level directory, be sure to edit ``.coveragerc`` to
79
+
include it in coverage reporting.
74
80
75
81
To add new tests that require Google App Engine, please place them in
76
82
the ``appengine`` directory if possible. If you place them elsewhere,
77
-
you will need to modify ``tox.ini`` to make the environments
83
+
you will need to modify ``nox.py`` to make the environments
0 commit comments