Skip to content

Make linter check scenario has tags #3733

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

Merged
merged 4 commits into from
Jan 11, 2019

Conversation

thk123
Copy link
Contributor

@thk123 thk123 commented Jan 9, 2019

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message). - we don't have tests for the linter, but perhaps we should?
  • My PR is restricted to a single feature or bugfix.
  • White-space or formatting changes outside the feature-related changed lines are in commits of their own.

Note: this (annoyingly) won't report if someone deletes a comma from an existing multi-line test since the error is reported on the line of SCENARIO/TEST_CASE, which might not be modified. But for the common case that you are adding a new test, it will work.

This work was done because it seemed like untagged tests weren't being run, but this doesn't actually seem to be the case. None the less, tests should be tagged per coding guidelines.

@thk123
Copy link
Contributor Author

thk123 commented Jan 9, 2019

Don't merge as I've added a commit on to the end demonstrating it catching the problem - will remove once CI fails on it.

@thk123
Copy link
Contributor Author

thk123 commented Jan 9, 2019

Linter fails as expected: https://travis-ci.org/diffblue/cbmc/jobs/477294232

@thk123 thk123 force-pushed the lint-scenario-has-tags branch from 1975c15 to 1b14892 Compare January 9, 2019 17:18
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

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

✔️
Passed Diffblue compatibility checks (cbmc commit: 1b14892).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/96876363

@thk123 thk123 merged commit a31ffb6 into diffblue:develop Jan 11, 2019
@thk123 thk123 deleted the lint-scenario-has-tags branch January 11, 2019 09:59
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.

4 participants