Skip to content

Commit e049a60

Browse files
findepilosipiuk
authored andcommitted
Move Running Tests under Development
1 parent 00050ac commit e049a60

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -83,37 +83,6 @@ The transaction is created when the first SQL statement is executed.
8383
exits the *with* context and the queries succeed, otherwise
8484
`presto.dbapi.Connection.rollback()' will be called.
8585

86-
# Running Tests
87-
88-
There is a helper scripts, `run`, that provides commands to run tests.
89-
Type `./run tests` to run both unit and integration tests.
90-
91-
`presto-python-client` uses [pytest](https://pytest.org/) for its tests. To run
92-
only unit tests, type:
93-
94-
```
95-
$ pytest tests
96-
```
97-
98-
Then you can pass options like `--pdb` or anything supported by `pytest --help`.
99-
100-
To run the tests with different versions of Python in managed *virtualenvs*,
101-
use `tox` (see the configuration in `tox.ini`):
102-
103-
```
104-
$ tox
105-
```
106-
107-
To run integration tests:
108-
109-
```
110-
$ pytest integration_tests
111-
```
112-
113-
They pull a Docker image and then run a container with a Presto server:
114-
- the image is named `prestosql/presto:${PRESTO_VERSION}`
115-
- the container is named `presto-python-client-tests-{uuid4()[:7]}`
116-
11786
# Development
11887

11988
## Getting Started With Development
@@ -150,6 +119,37 @@ When the code is ready, submit a Pull Request.
150119
- Prefer code that is readable over one that is "clever".
151120
- When writing a Git commit message, follow these [guidelines](https://chris.beams.io/posts/git-commit/).
152121

122+
## Running Tests
123+
124+
There is a helper scripts, `run`, that provides commands to run tests.
125+
Type `./run tests` to run both unit and integration tests.
126+
127+
`presto-python-client` uses [pytest](https://pytest.org/) for its tests. To run
128+
only unit tests, type:
129+
130+
```
131+
$ pytest tests
132+
```
133+
134+
Then you can pass options like `--pdb` or anything supported by `pytest --help`.
135+
136+
To run the tests with different versions of Python in managed *virtualenvs*,
137+
use `tox` (see the configuration in `tox.ini`):
138+
139+
```
140+
$ tox
141+
```
142+
143+
To run integration tests:
144+
145+
```
146+
$ pytest integration_tests
147+
```
148+
149+
They pull a Docker image and then run a container with a Presto server:
150+
- the image is named `prestosql/presto:${PRESTO_VERSION}`
151+
- the container is named `presto-python-client-tests-{uuid4()[:7]}`
152+
153153
## Releasing
154154

155155
- [Set up your development environment](#Getting-Started-With-Development).

0 commit comments

Comments
 (0)