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

Allow for Test re-runs #75

Merged
merged 1 commit into from
Apr 15, 2020
Merged

Allow for Test re-runs #75

merged 1 commit into from
Apr 15, 2020

Conversation

schneems
Copy link
Contributor

I needed to run a test twice to assert that the cache was used for the Ruby buildpack. I hacked it:

https://github.com/heroku/heroku-buildpack-ruby/blob/facd23708feff15d5bdbfd0455dc470a21b11a76/spec/hatchet/ci_spec.rb#L41-L43

This PR gives a supported API instead to call TestRun#run_again.

While working on this, I discovered that the test run wasn't being run inside the temp directory. So I fixed that bug, I also added support for before_deploy.

I needed to run a test twice to assert that the cache was used for the Ruby buildpack. I hacked it:

https://github.com/heroku/heroku-buildpack-ruby/blob/facd23708feff15d5bdbfd0455dc470a21b11a76/spec/hatchet/ci_spec.rb#L41-L43

This PR gives a supported API instead to call `TestRun#run_again`.

While working on this, I discovered that the test run wasn't being run inside the temp directory. So I fixed that bug, I also added support for `before_deploy`.
@schneems schneems merged commit 0df866b into master Apr 15, 2020
@schneems schneems deleted the schneems/multiple-ci-runs branch April 15, 2020 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants