]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Add test script (#451)
authorFlorimond Manca <florimond.manca@gmail.com>
Sat, 12 Oct 2019 16:14:44 +0000 (18:14 +0200)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2019 16:14:44 +0000 (18:14 +0200)
docs/contributing.md
scripts/test [new file with mode: 0755]

index 2faf88f684076806e06b9a3318536b59bf46b15b..7b745073469836b480c1992282e12cae98af77cd 100644 (file)
@@ -100,6 +100,14 @@ You can also run a single test script like this:
 $ nox -s test -- tests/test_multipart.py
 ```
 
+Lastly, to ensure you're on track to pass the CI build, run:
+
+```shell
+$ scripts/test
+```
+
+This command is a light wrapper around `nox` that will run code style checks and test the code against all installed Python versions.
+
 ## Documenting
 
 Documentation pages are located under the `docs/` folder.
diff --git a/scripts/test b/scripts/test
new file mode 100755 (executable)
index 0000000..5b8e094
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh -e
+
+set -x
+
+nox -s check
+nox -s test