History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: BOO-990
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Marcus Griep
Reporter: Marcus Griep
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Boo

Allow Test cases to be ignored when building testcase tree

Created: 09/Apr/08 03:35 PM   Updated: 09/Apr/08 03:40 PM
Component/s: Compiler
Affects Version/s: 0.8.1
Fix Version/s: 0.8.2

Time Tracking:
Not Specified


 Description  « Hide
We have a large suite of testcases, and we could only benefit by making it larger. Our testcases are currently running green, but there are probably many cases that are still red, but that aren't in the tree because they would clutter running finding new regressions. Enter #ignore. Used as such:
#ignore
"""
Pass
"""
print('Fail')

You can also provide a message to be included in the test build so that others can understand why a particular test is being ignored:

#ignore Known issue
"""
Pass
"""
print('Fail')

Of note, #ignore will only be recognized if the first line of the file begins with a # and the #ignore directive must come before any other docstring or code. You can chain together these directives for some additional information:

#ignore Known issue
#author Marcus Griep
#ignore will be appended to 'Known issue'
"""
Pass!
"""
print('Pass!')

This will not work:

#author

#ignore
"""
Pass
"""

But this will:

#
#author
#
#ignore
"""
Pass
"""

Currently only #ignore has meaning, and there are no plans to add meaning to any other directives, but you can add other meta-data to the file.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.