Skip to content

Commit

Permalink
init documentation and other tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
nionata committed Jul 1, 2020
1 parent 7abfc20 commit 4d647f0
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3'

services:
cms:
container_name: stem-c-cms-dev
container_name: stem-c-cms-test
image: strapi/strapi
environment:
- DATABASE_HOST=db
Expand All @@ -13,13 +13,13 @@ services:
depends_on:
- db
compile:
container_name: stem-c-compile-dev
container_name: stem-c-compile-test
build: ./compile
restart: always
ports:
- 8080:8080
db:
container_name: stem-c-db-dev
container_name: stem-c-db-test
image: postgres
restart: always
ports:
Expand Down
37 changes: 36 additions & 1 deletion test/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# Tests

> Full stack test suite
> Full stack test suite
<br/>

## Setup

1. Install dependencies `yarn`

2. Run the service `yarn start`

> Make sure to delete the db container to make sure it rebuilds for testing
<br/>

## Testing

### Functional

- Framework – Jest
- Usage – Test UI w/ snapshots and mocking
- Run `coming soon`

### Integration

- Framework – Jest
- Usage – Test all the API endpoints for roles, data access, and function
- Run `yarn integration`

### Performance

- Framework – K6
- Usage – Stress and Load test the application
- Run `coming soon`



2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"scripts": {
"start": "docker-compose -f ../docker-compose.test.yml up",
"test": "jest */*.test.js"
"integration": "jest */*.test.js"
},
"type": "module"
}

0 comments on commit 4d647f0

Please sign in to comment.