UNCLASSIFIED

README.md 774 Bytes
Newer Older
Graham Smith's avatar
Graham Smith committed
1
# launchboard
ckwolff's avatar
ckwolff committed
2

luke.glasscock's avatar
luke.glasscock committed
3 4
Front-end for https://launchboard.apps.dso.mil
(staging: https://launchboard.staging.dso.mil)
graham.smith's avatar
graham.smith committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

## Project setup

```
npm install
```

### Compiles and hot-reloads for development

```
npm run serve
```

### Compiles and minifies for production

```
npm run build
```

graham.smith's avatar
graham.smith committed
24 25 26
## Testing

### Unit Tests
graham.smith's avatar
graham.smith committed
27 28 29 30 31

```
npm run test:unit
```

graham.smith's avatar
graham.smith committed
32
### End-to-End Tests
graham.smith's avatar
graham.smith committed
33

graham.smith's avatar
graham.smith committed
34
Platform One is still working on a solution to run `npm run test:e2e-ci` against a deployed app instance outside of Keycloak/Authservice.
graham.smith's avatar
graham.smith committed
35

graham.smith's avatar
graham.smith committed
36
We can run e2e tests on the Launchboard Front End by mocking api requests in Cypress (see `tests/e2e/fixtures/users/`).
graham.smith's avatar
graham.smith committed
37

graham.smith's avatar
graham.smith committed
38
```bash
graham.smith's avatar
graham.smith committed
39 40
# run e2e tests locally with the cypress ui
npm run test:e2e
graham.smith's avatar
graham.smith committed
41

graham.smith's avatar
graham.smith committed
42 43
# run e2e tests locally headless (no cypress ui)
npm run test:e2e -- --headless
graham.smith's avatar
graham.smith committed
44
```