rakyll / gotest

go test with colors
BSD 3-Clause "New" or "Revised" License
1.35k stars 62 forks source link

ignore [no test files] #16

Closed mostafasolati closed 4 years ago

mostafasolati commented 5 years ago

This change removes the packages that have no test files by default. We still can see those package in verbose mode (-v) but seeing these lines in every test is annoying so I removed them by default.

subtlepseudonym commented 4 years ago

This seems like behavior that should be controlled by adding a flag (like --omit-ignored) rather than changing the default behavior.

rakyll commented 4 years ago

I agree with @subtlepseudonym that we should instead have a separate flag and shouldn't change the default behavior of "go test".

mostafasolati commented 4 years ago

This seems like behavior that should be controlled by adding a flag (like --omit-ignored) rather than changing the default behavior.

Okay I added a flag called -ignore and its default value is false

subtlepseudonym commented 4 years ago

@mostafasolati , if you're open to it, I have a few suggestions on the use of git that will make your work clearer.

subtlepseudonym commented 4 years ago

@mostafasolati you can find the git docs here

I've tried to summarize a few helpful points below --

Let me know if anything is unclear or unhelpful.

mostafasolati commented 4 years ago

@subtlepseudonym What does the "Some checks haven't completed yet" message mean?

subtlepseudonym commented 4 years ago

@mostafasolati I suspect you're getting that error from attempting to merge this PR.

Specifically, the error means that the ci/circleci: build check below has not completed successfully and github won't merge the pull request until it has. More generally, you can't merge this PR for two reasons: it hasn't been approved and you don't have write permissions.

mostafasolati commented 4 years ago

@mostafasolati I suspect you're getting that error from attempting to merge this PR.

Specifically, the error means that the ci/circleci: build check below has not completed successfully and github won't merge the pull request until it has. More generally, you can't merge this PR for two reasons: it hasn't been approved and you don't have write permissions.

Sounds wierd, how can I attempt to merge without permission?

subtlepseudonym commented 4 years ago

Sounds wierd, how can I attempt to merge without permission?

You can't, which is by design. This is rakyll's repo and, to my knowledge, they are the only one with write permission. They have the final say on whether your changes are accepted and merged.

rakyll commented 4 years ago

@mostafasolati please ignore the CircleCI, I can merge the change without it passing. I have been trying to set it up but the builds seem to be stuck. Please don't worry about it. If you can address the comments, I can merge :)

mostafasolati commented 4 years ago

.gitignore removed

rakyll commented 4 years ago

The filtering of arguments and flags were causing a few bugs and is harder for us to maintain due to the lack of comprehensive testing. Instead, I switched to an environment variable to make things easier to maintain. https://github.com/rakyll/gotest/issues/30