-
Notifications
You must be signed in to change notification settings - Fork 581
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
MarkdownBear: Add test to check message for error #1280
Conversation
Thanks for your contribution! Reviewing pull requests take really a lot of time and we're all volunteers. Please make sure you go through the following check list and complete them all before pinging someone for a review.
As you learn things over your Pull Request please help others on the chat and on PRs to get their stuff right as well! |
4b24fc5
to
c44bfb2
Compare
with execute_bear(self.uut, fname, file) as results: | ||
self.assertEqual(results[0].message, | ||
'Line must be at most 10 characters' | ||
' maximum-line-length remark-lint') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm the spacing is a bit weird, why is this ' maximum-line-length remark-lint'
included in the message anyway?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup,I actually improved the output_regex and the removed the 'maximum-line-length remark-lint' in #1277 but that pr is on hold till this issue is resolved.
since you haven't actually done a bugfix but rather prove that there is no bug I'd use closes, not fixes. Also commit message should sum up the change, let's try something like The code change looks rather good and we have to rethink where our docker image bug could be... :/ |
👍 |
c44bfb2
to
7abd34b
Compare
Comment on 7abd34b. Shortlog of the HEAD commit contains 65 character(s). This is 15 character(s) longer than the limit (65 > 50). GitCommitBear, severity NORMAL, section |
7abd34b
to
f1a0a25
Compare
ack f1a0a25 |
@rultor merge |
@fneu @namanyadav12 Oops, I failed. You can see the full log here (spent 1min)
|
@namanyadav12 please rebase on lastest master, thanks :) |
f1a0a25
to
2e2ce17
Compare
@@ -16,7 +16,7 @@ | |||
"jshint": "~2", | |||
"postcss-cli": "~2", | |||
"remark-cli": "~2", | |||
"remark-lint": ">=5.1.0", | |||
"remark-lint": "~5.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change related?
Is the problem that 5.4.0 (the latest) was being installed, and that version is broken??
If yes ... that needs to be clearly stated in the commit message.
If these tests work with 5.4.0, then changing this file should be a separate PR, as it is not related.
(Note that due to caching, it isnt obvious which versions are installed in the logs, unless the build is without the cache)
unack 2e2ce17 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not see any information on the issue, or PR, which suggests that this PR can fix the bug.
Adding tests obviously can not fix a bug.
And there is no analysis of the versions of remark-lint which might explain why altering the package.json will fix the bug (it might, but I cant see any analysis).
@jayvdb the commit message is already modified. I changed it earlier when sils asked me to. |
2e2ce17
to
c639702
Compare
Also changed Closes to Related to |
I think you have two spaces after "Related to ", and you still include the change to "package.json". |
c639702
to
99ca12e
Compare
ack 99ca12e |
https://circleci.com/gh/coala/coala-bears/4882 has passed on CircleCI, but Github is still waiting for it to finish :/ I'm going to restart it |
needs rebase |
A better test for MarkdownBear to check the exact message of the result for a maximum line length error. Related to coala#1235
99ca12e
to
6663f7b
Compare
ack 6663f7b |
@rultor merge |
A better test for MarkdownBear to check the exact message
of the result for a maximum line length error.
Related to #1235