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

Consider linting test code on CI #1143

Closed
killercup opened this Issue Sep 4, 2017 · 8 comments

Comments

Projects
None yet
2 participants
@killercup
Member

killercup commented Sep 4, 2017

We are currently telling contributors to use the bin/test script to test their changes. This script runs a ALL the cargo tests—with clippy enabled. Which means it catches more than our CI setup does, as the Travis only runs the equivalent of cargo clippy.

I think we can tell Travis to compile in a way so code in #[cfg(test)] gets included, but this may conflict with compiling all backends at once.

@sgrif

This comment has been minimized.

Member

sgrif commented Sep 5, 2017

I'm actually wondering if we should just remove clippy from bin/test as it increases build times quite a bit. I don't think linting the tests extensively adds nearly as much value

@killercup

This comment has been minimized.

Member

killercup commented Sep 5, 2017

@sgrif

This comment has been minimized.

Member

sgrif commented Sep 5, 2017

If we removed it from bin/test I would say that we should not lint tests on CI either. Only lint the main code, which is what CI does currently.

@killercup

This comment has been minimized.

Member

killercup commented Sep 5, 2017

@sgrif

This comment has been minimized.

Member

sgrif commented Sep 5, 2017

Given that it's test code, I don't think that's a huge loss

@killercup

This comment has been minimized.

Member

killercup commented Sep 5, 2017

@sgrif

This comment has been minimized.

Member

sgrif commented Sep 5, 2017

I guess it's a question of whether people are running bin/test or bin/check more.

@killercup

This comment has been minimized.

Member

killercup commented Sep 7, 2017

Well, let's just hope people find bin/check then 😄

@killercup killercup closed this Sep 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment