[wp-trac] [WordPress Trac] #42045: @expectedIncorrectUsage annotation fails under specific scenerio
WordPress Trac
noreply at wordpress.org
Sat Sep 30 19:14:29 UTC 2017
#42045: @expectedIncorrectUsage annotation fails under specific scenerio
------------------------------+------------------------------
Reporter: thekt12 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Comment (by thekt12):
@swissspidy yes one test case per assertion will definitely solve this
issue, but i still don't have a way to check if the call to
`_doing_it_wrong` was made from my part of snippet or not.
Also, I feel @expectedIncorrectUsage needs to be fixed as there is a
chance that other developer will be able to write failed test cases and
still make it look okay. Or if we can make one assetion per test as a
testing standard in wordpess and scripts should be written to ensure that.
But the later will involve most of the test already present to be broken
down and re written to different test functions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42045#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list