Open kirubeltadesse opened 1 year ago
Create a container a test and just run the tests in the svc container.
test
svc
This is the first container to run unit tests separately.
There is a sample code that will be added to the docker-compose.yml file.
docker-compose.yml
test: build: . init: true volumes: - same as the svc command: - /path/to/python - -m - pytest - tests depends_on: - svc
There is additional resource about pytest
Description
Create a container a
test
and just run the tests in thesvc
container.Acceptable Criteria
Related Story
This is the first container to run unit tests separately.
Technical Info
There is a sample code that will be added to the
docker-compose.yml
file.There is additional resource about pytest