cpina/github-action-push-to-another-repository

Write tests

cpina opened this issue ยท 4 comments

cpina commented

(Maintainer here)

Before adding more features and merging PRs (unless they fix an error) I want to write tests for the github action (should have been done long time ago).

Testing the action is getting harder and harder as we add features and I really want to avoid regressions.

I might have some time towards end of February 2022 but if anyone wants to have a look at writing tests it might speed up PR and issues.

I haven't planed yet how to implement the tests. If someone wants to help it might be a good idea to discuss options here.

Thanks for using it and for your patience!

Hey, If this issue is still up for grabs, I'd like to help out!

cpina commented

@KaviiSuri (and anyone else) : apologies for missing to reply you in February!

Yes, this is still for grab. I'm opened to proposals on how to test it (which parts to mock / fake, test the final result would be nice not only the git call, etc.).

@cpina No issues, I'll research a bit and come up with a few options!

In #102 I added unit testing that it might not be exacly what @cpina was thinking about. I implemented unit testing as End-To-End testing would require very complex test suite and a lot of time.