Skip to content
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

Use the local test web server for all tests #51

Merged
merged 2 commits into from
Mar 21, 2022

Conversation

theseion
Copy link
Collaborator

Fixed issues with false positive test results

Fixed issues with false positive test results
@theseion
Copy link
Collaborator Author

Note: not all tests will succeed. Originally, some tests succeeded even though they shouldn't have. After fixing that, they now fail. That will be cleaned up with introduction of log marking.

@theseion theseion mentioned this pull request Mar 20, 2022
Copy link
Member

@fzipi fzipi left a comment

Choose a reason for hiding this comment

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

Other than that, looks nice!

runner/run.go Outdated
@@ -35,6 +36,7 @@ func Run(include string, exclude string, showTime bool, output bool, ftwtests []
// if we received a particular testid, skip until we find it
if needToSkipTest(include, exclude, t.TestTitle, tests.Meta.Enabled) {
addResultToStats(Skipped, t.TestTitle, &stats)
log.Info().Msgf("Skipping test %s", t.TestTitle)
Copy link
Member

Choose a reason for hiding this comment

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

The problem here is that we cannot control if this is logged in quiet mode.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've changed it to respect quiet mode. Better?

@fzipi
Copy link
Member

fzipi commented Mar 20, 2022

So we should merge this one despite tests failing?

@theseion
Copy link
Collaborator Author

Depends. The other PR is based on this one, so it includes these changes too. I just wanted to separate the change. Tests in the other PR are all green.

@fzipi fzipi merged commit 2ec51c5 into coreruleset:main Mar 21, 2022
@theseion theseion deleted the use-test-web-server-for-all-tests branch March 31, 2022 15:46
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.

2 participants