##// END OF EJS Templates
be more precise on how to run tests
Matthias Bussonnier -
Show More
@@ -74,22 +74,22 b' For more detailed information, see our [GitHub Workflow](https://github.com/ipyt'
74
74
75 ## Running Tests
75 ## Running Tests
76
76
77 All the tests can by run by using
77 All the tests can by running
78 ```shell
78 ```shell
79 python3 IPython/testing/iptest.py IPython/core/tests
79 iptest
80 ```
80 ```
81
81
82 All the tests for a single file (for example **test_alias.py**) can be run by using
82 All the tests for a single module (for example **test_alias**) can be run by using the fully qualified path to the module.
83 ```shell
83 ```shell
84 python3 IPython/testing/iptest.py IPython/core/tests/test_alias.py
84 iptest IPython.core.tests.test_alias
85 ```
85 ```
86
86
87 Only a single test (for example **test_alias_lifecycle**) within a single file can be run by using
87 Only a single test (for example **test_alias_lifecycle**) within a single file can be run by adding the specific test after a `:` at the end:
88 ```shell
88 ```shell
89 python3 IPython/testing/iptest.py IPython/core/tests/test_alias:test_alias_lifecycle
89 iptest IPython.core.tests.test_alias:test_alias_lifecycle
90 ```
90 ```
91
91
92 The directory separator (/) can be replaced with dot (.) character as well, for example we can run all the tests by using
92 For convenience, the full path to a file can often be used instead of the module path on unix systems. For example we can run all the tests by using
93 ```shell
93 ```shell
94 python3 IPython/testing/iptest.py IPython.core.tests
94 iptest IPython/core/tests/test_alial.py
95 ```
95 ```
General Comments 0
You need to be logged in to leave comments. Login now