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

Feat: Script for Coverage check #22 #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tanryberdi
Copy link

  • Added script for CI for test coverage

See #22

@tanryberdi tanryberdi force-pushed the tanryberdi.issue-22 branch 2 times, most recently from 0d67d93 to 85401c5 Compare January 19, 2023 06:11
- Added script for CI for test coverage
Signed-off-by: Tanryberdi <[email protected]>

See vaguecoder#22
echo "Current test coverage is below threshold. Please add more unit tests or adjust threshold to a lower value."
echo "Failed"
exit 1
fi
Copy link
Owner

Choose a reason for hiding this comment

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

Newline is missing at the end of the file.

Copy link
Owner

Choose a reason for hiding this comment

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

Also, I think sudo is not required. A reference of such tests from etcd here.

@vaguecoder
Copy link
Owner

My initial idea in achieving this is to have a single script that can be called from both make and actions as explained in #22. That way, the modifications in the future can be done in a single place. WDYT?

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