Skip to content

Commit a1b3de7

Browse files
committed
try different coverages for different databases
1 parent 4c3e2a9 commit a1b3de7

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

scripts/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ Call them from the root of the project, e.g. `./scripts/lint.sh`.
66

77
* `scripts/lint.sh` - Run the automated code linting/formatting tools.
88
* `scripts/release.sh` - Publish package to PyPI.
9-
* `scripts/tests.sh` - General script to run tests and generate coverage report. It's used in the following scripts.
109
* `scripts/test-postgres.sh` - Run the test suite with Postgres.
1110
* `scripts/test-sqlite.sh` - Run the test suite with SQLite.
1211
* `scripts/piccolo.sh` - Run the Piccolo CLI on the example project in the `tests` folder.

scripts/test-postgres.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# To run a single test tests/test_foo.py::TestFoo::test_foo
66

77
export PICCOLO_CONF="tests.postgres_conf"
8-
./scripts/tests.sh
8+
python -m pytest --cov=piccolo --cov-report xml --cov-report html --cov-fail-under 85 -s $@

scripts/test-sqlite.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# To run a single test tests/test_foo.py::TestFoo::test_foo
66

77
export PICCOLO_CONF="tests.sqlite_conf"
8-
./scripts/tests.sh
8+
python -m pytest --cov=piccolo --cov-report xml --cov-report html --cov-fail-under 75 -s $@

0 commit comments

Comments
 (0)