Test method names missing underscores aren't detected
Bug #1245046 reported by
Laurens Van Houtven
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
twistedchecker |
New
|
Undecided
|
Unassigned |
Bug Description
Test methods named "testFooBar" aren't flagged as faulty. They should be named test_FooBar.
I'm not sure what the appropriate way to implement this is. Presumably:
1. In any module trial would flag as being a test module
2. Methods with names starting with "test" must also start with "test_"
To post a comment you must log in.
I came across this here:
http:// buildbot. twistedmatrix. com/builders/ twistedchecker/ builds/ 1453/steps/ run-twistedchec ker/logs/ new%20twistedch ecker%20errors
But that has test methods like:
https:/ /twistedmatrix. com/trac/ browser/ branches/ logfilepy3k- 6749/twisted/ test/test_ logfile. py?rev= 40475#L43
Which clearly should be flagged :)