#26331 closed Bug (fixed)
Tests functions with typos are not detected by test runner
Reported by: | George Marshall | Owned by: | George Marshall |
---|---|---|---|
Component: | Testing framework | Version: | |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I noticed a couple of tests that either have typos or are missing the "test" keyword. This is causing them to not be detected by the test runner.
Attachments (1)
Change History (8)
comment:1 by , 9 years ago
by , 9 years ago
Attachment: | test-functions.txt added |
---|
comment:2 by , 9 years ago
I ran
git grep -E '^[ \t]+def .*\(self\):$' | grep -vE 'def (__|test|setUp|tearDown)'
in the tests directory to generate the attached file. For me it doesn't look like it contains any methods that should be discovered by the test runner.
comment:3 by , 9 years ago
The description on the ticket is kind of ambiguous. Look at the attached pull request. This is making reference to test methods that have assertions that are not being run.
comment:4 by , 9 years ago
Has patch: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
Oh, I didn't see your pull request.
You are right, those two methods should be discovered.
Used the following regex to find these