Skip to content

Commit

Permalink
update contributing.md reference to test/integration (#8073)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk authored Jul 12, 2023
1 parent 30def98 commit 2d686b7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ Finally, you can also run a specific test or group of tests using [`pytest`](htt
python3 -m pytest tests/unit/test_graph.py
# run a specific unit test
python3 -m pytest tests/unit/test_graph.py::GraphTest::test__dependency_list
# run specific Postgres integration tests (old way)
python3 -m pytest -m profile_postgres test/integration/074_postgres_unlogged_table_tests
# run specific Postgres integration tests (new way)
# run specific Postgres functional tests
python3 -m pytest tests/functional/sources
```

Expand All @@ -186,8 +184,7 @@ python3 -m pytest tests/functional/sources

Here are some general rules for adding tests:
* unit tests (`tests/unit`) don’t need to access a database; "pure Python" tests should be written as unit tests
* functional tests (`test/integration` & `tests/functional`) cover anything that interacts with a database, namely adapter
* *everything in* `test/*` *is being steadily migrated to* `tests/*`
* functional tests (`tests/functional`) cover anything that interacts with a database, namely adapter

## Debugging

Expand Down

0 comments on commit 2d686b7

Please sign in to comment.