Skip to content

Conversation

@khalifan-kfan
Copy link
Contributor

What this PR does?

Adds initial testing to the application

How to run it.

Run make test

Screenshot 2024-03-21 at 17 06 41

@khalifan-kfan khalifan-kfan requested a review from Mubangizi March 21, 2024 14:08
@Mubangizi Mubangizi force-pushed the ft-test-service branch 12 times, most recently from 39cb360 to 1a6fc29 Compare March 28, 2024 10:01
Copy link
Contributor

@Mubangizi Mubangizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, just a few issues to address

Dockerfile Outdated

WORKDIR /app

ARG FASTAPI_ENV='development'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this, because we use this docker file in staging and prod deployments

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

networks:
cranecloud:
external: true
external: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave this as true


test:build-testing-image ## Run tests
@ ${INFO} "Running tests"
@ docker compose -f $(DOCKER_DEV_COMPOSE_FILE) exec app-logger poetry run pytest --cov=. --cov-report=term-missing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create the external network at this point

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@khalifan-kfan
Copy link
Contributor Author

@Mubangizi this is done

Copy link
Contributor

@Mubangizi Mubangizi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @khalifan-kfan

@Mubangizi Mubangizi merged commit 7069622 into develop Jan 23, 2025
2 checks passed
@Mubangizi Mubangizi deleted the ft-test-service branch January 23, 2025 09:43
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

Successfully merging this pull request may close these issues.

3 participants