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

Add unit and integration tests for commands #132

Merged
merged 22 commits into from
Apr 5, 2023
Merged

Conversation

tnederlof
Copy link
Contributor

@tnederlof tnederlof commented Apr 1, 2023

Adding the first set of unit and integration tests commands.

Unit tests and integration tests are both in the X_test.go files in the cmd package. If the -short flag is passed to go test then only unit tests are run. GitHub actions will only run unit tests for PRs and then run the longer integration tests before releasing. Integration tests use docker to bring up a container, actually use wbi and check for success.

@tnederlof tnederlof self-assigned this Apr 1, 2023
@tnederlof tnederlof changed the title Add unit and integration tests for Activate and Install commands Add unit and integration tests for commands Apr 1, 2023
@samcofer
Copy link
Contributor

samcofer commented Apr 4, 2023

This looks good, though I can't speak to the testing stuff too much, though I'm glad to see the cleanup of redundant \n so that Intellij won't yell at me anymore.

@tnederlof tnederlof merged commit 1fab15b into main Apr 5, 2023
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