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

Build: Tests: "make test" now fails if there are failing or broken tests #442

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

inkarkat
Copy link
Member

@inkarkat inkarkat commented Dec 18, 2024

aggregate-results.sh just reports the execution status, but succeeds in all cases.
The build should fail if there are errors. (This also means that no cleanup runs and the failures can be investigated in more detail.)

Before submitting a pull request, please make sure the following is done:

  • Fork the repository and create your branch from master.
  • If you've added code that should be tested, add tests!
  • Ensure the test suite passes.
  • Lint your code with ShellCheck.
  • Include a human-readable description of what the pull request is trying to accomplish.
  • Steps for the reviewer(s) on how they can manually QA the changes: Make a test fail, run $ make test, observe exit status 1
  • Have a fixes #XX reference to the issue that this pull request fixes.

aggregate-results.sh just reports the execution status, but succeeds in all cases.
The build should fail if there are errors. (This also means that no cleanup runs and the failures can be investigated in more detail.)
@inkarkat inkarkat requested a review from karbassi December 19, 2024 09:42
@hyperupcall
Copy link
Contributor

Kind of surprised that ShellCheck didn't catch the use of -a within [. Otherwise looks good to me

It's not parsed here (from --quiet, as in test-lib.sh), and even exporting it doesn't have any effect, as it's only used when say_color()'s first argument is invalid / empty, which cannot happen due to the defaulting in get_color().
@inkarkat
Copy link
Member Author

@hyperupcall Thanks for reviewing! I have an older shellcheck 0.7.0 on the system that didn't catch the -a. I've fixed that and the all other warnings in that file now.

These make sense in the original context of testing Git commands (that may have external test scripts), but for todo.sh we've never used them, nor are they likely to be useful for this project.
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