-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add automated tests before generating a new Docker image to avoid pushing non-working code on master branch #79
Comments
How do you plan to incorporate this into the build process using GitHub Actions? Do you have any frameworks in mind for running those unit tests? |
@7Adrian, no, I start from a blank page. I never wrote Docker/bash unit tests before, I did on Java, so I'm opened to any suggestion. I think a new GitHub action that would run before the current one would be a great start ? I have to read about GitHub CI/CD cause I'm a noob. |
@tigerblue77 I'm thinking of trying bats (MIT) for unit tests. I don’t have much experience with GitHub CI/CD since I typically use Jenkins pipelines for that, but I’m hopeful that GitHub Actions will work well with it bats examples. |
It sounds good ! Thanks for the advice |
I added tests for calculating line interpolation. You can run them by simply typing: ./tests.sh There are executed in docker container provided by bats maintainers. Any file from If all tests pass, the script returns Also remember to credits authors of that library. |
@tigerblue77 Idrac is a pain to unit test with I think you would have a public idrac instance |
No description provided.
The text was updated successfully, but these errors were encountered: