README: update with instructions on running tests

This commit is contained in:
Graham Christensen 2021-02-23 17:25:29 -05:00
parent 45d9a22d73
commit 3ebcaef127
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -106,6 +106,15 @@ conflicts with services that might be running on your host, hydra and postgress
Note that this is only ever meant as an ad-hoc way of executing Hydra during development. Please make use of the Note that this is only ever meant as an ad-hoc way of executing Hydra during development. Please make use of the
NixOS module for actually running Hydra in production. NixOS module for actually running Hydra in production.
### Running Tests
After making your changes, verify the test suite still passes. After following the steps in [Development Environment](#development-environment), run:
```
$ nix-shell
$ make check
```
### JSON API ### JSON API
You can also interface with Hydra through a JSON API. The API is defined in [hydra-api.yaml](./hydra-api.yaml) and you can test and explore via the [swagger editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/NixOS/hydra/master/hydra-api.yaml) You can also interface with Hydra through a JSON API. The API is defined in [hydra-api.yaml](./hydra-api.yaml) and you can test and explore via the [swagger editor](https://editor.swagger.io/?url=https://raw.githubusercontent.com/NixOS/hydra/master/hydra-api.yaml)