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

test(e2e): add initial CLI tests #392

Merged
merged 1 commit into from
Apr 20, 2023
Merged

test(e2e): add initial CLI tests #392

merged 1 commit into from
Apr 20, 2023

Conversation

antoineco
Copy link
Contributor

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

Part of #370

Lays some foundation for e2e CLI tests using the Ginkgo framework.

Includes:

  • A test suite for the version subcommand (does it print the version, does it show the help, ...)
  • A GitHub Actions workflow to run those tests in PRs

We would ideally include more than one test suite in the initial version, but we need to address an issue while setting the config directory using CLI flags (or env vars) before we can fully isolate test cases from one another. Besides, I will be at a professional event the next three days, so submitting this as a working initial snapshot.

Signed-off-by: Antoine Cotten <[email protected]>
@nderjung nderjung self-assigned this Apr 20, 2023
@nderjung nderjung added area/test Issue or PR is related to test(s) kind/test Issue or PR is related to test(s) labels Apr 20, 2023
Copy link
Member

@nderjung nderjung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really necessary and useful addition to the project, thanks a lot!

Reviewed-by: Alexander Jung [email protected]
Approved-by: Alexander Jung [email protected]

@nderjung nderjung merged commit 2e4364f into unikraft:staging Apr 20, 2023
@antoineco antoineco deleted the cli-e2e-tests branch April 20, 2023 15:53
nderjung added a commit to nderjung/kraftkit that referenced this pull request Apr 25, 2023
Thanks to the introduction of our e2e tests in unikraft#392, the build workflow
has become redundant.  It previously served as an e2e test by building
and running the command `kraft version` which in itself is tested more
extensively.

Signed-off-by: Alexander Jung <[email protected]>
afzal442 pushed a commit to Cloud-Hacks/kraftkit that referenced this pull request Apr 29, 2023
Thanks to the introduction of our e2e tests in unikraft#392, the build workflow
has become redundant.  It previously served as an e2e test by building
and running the command `kraft version` which in itself is tested more
extensively.

Signed-off-by: Alexander Jung <[email protected]>
Signed-off-by: afzal442 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test Issue or PR is related to test(s) kind/test Issue or PR is related to test(s)
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

2 participants