Skip to content

Create the Test container to backend unit test #65

@kirubeltadesse

Description

@kirubeltadesse

Description

Create a container a test and just run the tests in the svc container.

Acceptable Criteria

  • creating test container
  • only focusing on the backend
  • run locally and see if that works

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions