mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
Document how to run the Python unit tests in python/README.md
Change-Id: Ic7e594908bc92abe39be39d814836ccb3bf0badb
This commit is contained in:
1 parent
29657d8511
commit
b6e304f612
1 file changed
+20
@@ -56,6 +56,25 @@ flake8 --config=.flake8.cython .
|
||||
|
||||
See the [Development][2] page in the documentation.
|
||||
|
||||
### Running the unit tests
|
||||
|
||||
We are using [pytest][4] to develop out unit test suite. After building the
|
||||
project in place, you can run its unit tests like so:
|
||||
|
||||
```bash
|
||||
pytest pyarrow
|
||||
```
|
||||
|
||||
The project has a number of custom command line options for its test
|
||||
suite. Some tests are disabled by default, for example. To see all the options,
|
||||
run
|
||||
|
||||
```bash
|
||||
pytest pyarrow --help
|
||||
```
|
||||
|
||||
and look for the "custom options" section.
|
||||
|
||||
### Building the documentation
|
||||
|
||||
```bash
|
||||
@@ -65,3 +84,4 @@ python setup.py build_sphinx -s doc/source
|
||||
|
||||
[2]: https://github.com/apache/arrow/blob/master/python/doc/source/development.rst
|
||||
[3]: https://github.com/pandas-dev/pandas
|
||||
[4]: https://docs.pytest.org/en/latest/
|
||||
Reference in new issue
Block a user