Skip to content

Add very basic test suite with bats and shellmock#100

Merged
stefanzweifel merged 26 commits intomasterfrom
testsuite/bash_shell_mock
Sep 13, 2020
Merged

Add very basic test suite with bats and shellmock#100
stefanzweifel merged 26 commits intomasterfrom
testsuite/bash_shell_mock

Conversation

@stefanzweifel
Copy link
Copy Markdown
Owner

To prevent me and others from braking the Action for the whole ecosystem, I would like to add a test suite.

As the Action (purposefully) written in bash and not in JavaScript, I've opted to use BATS and shellmock for the test suite.

This is still a very early version of the test suite. In the future, I would like to cover a lot more logic and paths with it. However, I'm still trying to familiarise myself with bash, BATS and shellmock.

The developer experience isn't perfect yet either. (Just now I've realised that my setup method changed my Git user name for example 🤦‍♂️)

@stefanzweifel stefanzweifel marked this pull request as ready for review September 13, 2020 12:06
@stefanzweifel stefanzweifel merged commit 9e4e2e7 into master Sep 13, 2020
@stefanzweifel stefanzweifel deleted the testsuite/bash_shell_mock branch September 13, 2020 12:07
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.

2 participants