What's the recommended way to run integration test...
# seed
r
What's the recommended way to run integration tests? I tried them in the
after_deploy
stage but I see that this is post-cleanup so I'd probably need to install a bunch of things. I could try and call a webhook into the gitlab CI or if there's better support for GitHub we can switch over
f
Hey @Robert Chandler, running integration test inside the Post-Deploy phase makes more sense https://seed.run/docs/adding-a-post-deploy-phase.html
If the tests fail inside
after_deploy
, SEED treats the SST app as failed to deploy.
Where Post-Deploy phase is like a separate step. So SEED is able to show in the pipeline that the SST app succeeded, but the test that comes after failed.
That said, you’d still need to npm install the packages required to run the tests.
Let me know if that makes sense
r
That makes sense thanks, I'm trying it out now
@Frank Should the
SEED_BRANCH
environment variable be the source or target branch for an auto deployed gitlab MR? I had expected it to be the source branch but it seems to be "master" when I echo it in the post-deploy phase