-
Notifications
You must be signed in to change notification settings - Fork 0
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
EHPR-186 | Integration tests #142
Conversation
73e3d00
to
d33f227
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-wise good, but please check my comments and make sure integration tests should pass in github action
da32d60
to
75c350c
Compare
72636b7
to
79d6aab
Compare
@echo "++\n*****" | ||
|
||
start-test-db: | ||
NODE_ENV=test docker-compose -f docker-compose.test.yaml up --build -d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels a bit weird to have a separate db docker container for testing.
We should be able to reuse the same connection for the main app.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to make it a completely separate database so it could be configured slightly differently and so it wouldn't interfere with the main app if it's already running, what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally we wiped-out (tear down) db for correctness of test and isolation of test execution. In that case using separate database is good choice.
79d6aab
to
236f783
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Good job
make api-integration-test
to run integration tests with a transient postgres container