- corrected docu

- run unit test correctly for backend
This commit is contained in:
Ulf Gebhardt 2021-01-20 14:24:15 +01:00
parent d53ec6e05d
commit 87db5ae31e
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 5 additions and 17 deletions

View File

@ -55,7 +55,7 @@ jobs:
# Unit Tests
- name: backend | unit tests
run: docker run --rm ocelotsocialnetwork/backend:build yarn run test:jest
run: docker run --rm ocelotsocialnetwork/backend:build yarn run test
##########################################################################
# WEBAPP #################################################################

View File

@ -178,32 +178,20 @@ database after each test, running the tests will wipe out all your data!
{% tabs %}
{% tab title="Docker" %}
Run the _**jest**_ tests:
Run the unit tests:
```bash
$ docker-compose exec backend yarn run test:jest
```
Run the _**cucumber**_ features:
```bash
$ docker-compose exec backend yarn run test:cucumber
$ docker-compose exec backend yarn run test
```
{% endtab %}
{% tab title="Without Docker" %}
Run the _**jest**_ tests:
Run the unit tests:
```bash
$ yarn run test:jest
```
Run the _**cucumber**_ features:
```bash
$ yarn run test:cucumber
$ yarn run test
```
{% endtab %}