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.
Description
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.