-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Run lint tests with regular test suite #1088
Conversation
I think these should be separate and only combined in travis. A lot of times I will leave the linting until the end and run the tests frequently when writing code. |
we should just add |
Tagging in @davisjam as it was his suggestion - I do think it sounds like a good one. Having to read the README takes me away from the work to learn how to contribute. Having the system tell me, on the other hand...that I can work with quickly. Sometimes, as a contributor, I'm working on something with a package...the package be broken...I just wanted analyze and fix the issue - maybe not become a full-time contributor and learn all the ins and outs of the documentation. That's my chip into the ring on this one being a worthy feature. First time I saw it was with the USWDS and I really appreciated it - at that time it was the only tests they had in fact. |
Agree w/ @UziTech |
Lint doesn't take very long. Maybe break up farther: test - all the things
test:new
test:original
test:lint - just lint Then contributors can select a subset of tests to run without the linter, which doesn't take long to run at the moment. Still able to test just the lint rules without fixing them. Covers contributors like @davisjam and myself (without having to read the docs, which no one reads anyway - you know how many issues we had that could have been solved by reading the docs). And, covers Travis testing all the things as well. |
ps. You know frustrating it is as a contributor when someone tells me to read the docs instead of working collaborative with me, if I wanted to read the docs, I wouldn't be asking the for help. lol |
That's nonsense to me. Just write to run |
I don't think people really need to know that they need to lint their code as long as it is caught by Travis. For anyone using a modern editor with linting baked in this is a non-issue anyways (let the editor tell them something is wrong) |
Yup this was really the underlying "problem" in my case. Though if the README had a note about the command for linting that would have been helpful as @Feder1co5oave suggested. |
Do contributors get to see why Travis failed? (Haven't contributed to a lot of projects that use Travis - usually Circle or nothing.) Still leaning toward the best of all worlds...big believer in the power of "and". :)
So, docs - check. |
@UziTech: Right. Sorry, should have been more clear. Someone who's not a collaborator on the repo itself. I know I can see them - by being taken to Travis, but I have write privileges on the repo. Do I still get that if I don't? |
Ya anyone can see the log for any PR |
Travis also has build stages in beta. I've never set them up but we could look into that. |
Tagging #1074 - there's probably other places that idea would be relevant as well. |
Totally agree with this. |
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.
Love it!
Merging as part of the #1103 work. |
@joshbruce looks like this is what actually broke the node 0.10 test since travis was setup to only lint on other node versions.
actually i take that back the only way to get passing tests is to revert this |
…test Run lint tests with regular test suite
See #1083
Marked version: n/a
Description
PR runs lint tests along with test suite...locally.
Submitter
Reviewer