Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create the Test container to backend unit test #65

Open
kirubeltadesse opened this issue Jul 25, 2023 · 0 comments
Open

Create the Test container to backend unit test #65

kirubeltadesse opened this issue Jul 25, 2023 · 0 comments
Assignees

Comments

@kirubeltadesse
Copy link
Collaborator

kirubeltadesse commented Jul 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants