Skip to content

Commit 835007b

Browse files
committed
Restructure test files & npm scripts
1 parent f005ba1 commit 835007b

15 files changed

+1394
-50
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
SENTRY_PROJECT: httptoolkit-server
6767
NPM_CONFIG_UNSAFE_PERM: true
6868

69-
- run: DOCKER_HOST=$DIND_HOST xvfb-run npm run test:release
69+
- run: DOCKER_HOST=$DIND_HOST xvfb-run npm run test:integration:release
7070

7171
- uses: actions/upload-artifact@v3
7272
with:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ To get started:
4040
A few tips:
4141

4242
* New interceptors need to be added to `src/interceptors/index.ts`. They will also need to be added to [the UI](https://github.com/httptoolkit/httptoolkit-ui).
43-
* The tests assume that the required applications are installed and some docker images are already pulled. See [ci.yml](.github/workflows/ci.yml) and the [build-base](https://github.com/httptoolkit/act-build-base/) image for an example of how to set this up (or just run the tests, look at the errors, and install whatever's missing).
43+
* Tests (both unit & integration) can be run with `npm test`, or `npm run test:unit`/`npm run test:integration` to run just the unit/integration tests.
44+
* Note that the integration tests assume the required applications are installed and some docker images are already pulled. See [ci.yml](.github/workflows/ci.yml) and the [build-base](https://github.com/httptoolkit/act-build-base/) image for an example of how to set this up (or just run the tests, look at the errors, and install whatever's missing).

0 commit comments

Comments
 (0)