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: Add the unit tests to the github action #11

Merged
merged 9 commits into from Mar 15, 2024
Merged

Conversation

andreaangiolillo
Copy link
Collaborator

@andreaangiolillo andreaangiolillo commented Mar 14, 2024

Proposed changes

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Further comments

@andreaangiolillo andreaangiolillo marked this pull request as ready for review March 14, 2024 16:10
@andreaangiolillo andreaangiolillo requested a review from a team as a code owner March 14, 2024 16:10
Comment on lines 47 to 48
- name: Install gotest
run: go install gotest.tools/gotestsum@ec99a250836f069a524bb9d9b5de0a7a96334ea7
Copy link
Collaborator

Choose a reason for hiding this comment

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

we use this in the cli to have the test summary with failures since gotestsum can produce xunit reports
feel free to use the simpler go test command but I wonder if there's a nicer way to have a summary report of tests

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this https://github.com/smartystreets/goconvey may be a bit too much. xD

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah I don't have a strong opinion I feel in general GH actions lack a good way to represent test summaries, I don't quite like it on the CLI currently and I haven't really found something good enough to what I would expect (a list of tests and the result)

Copy link
Collaborator

@gssbzn gssbzn left a comment

Choose a reason for hiding this comment

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

LGTM

tools/cli/Makefile Outdated Show resolved Hide resolved
Co-authored-by: Gustavo Bazan <gus.bazan@hey.com>
@andreaangiolillo andreaangiolillo merged commit c4782c8 into main Mar 15, 2024
5 checks passed
@andreaangiolillo andreaangiolillo deleted the add_unit_test branch March 15, 2024 10:23
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.

None yet

2 participants