Swarmies / sap-core

description of repo
https://swarmies.github.io/sap-core/
0 stars 5 forks source link

Create the Test container to backend unit test #65

Open kirubeltadesse opened 1 year ago

kirubeltadesse commented 1 year ago

Description

Create a container a test and just run the tests in the svc 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.

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