v0.1.17
New type of error:
BrokenError is an interface for set errors like Broken errors.
If the function returns an error, which implements this interface, the allure step will has a broken status
type BrokenError interface {
IsBroken() bool
SetBroken(bool)
Error() string
}
New methods for errors:
// WrapOptionalError returns error with an Optional tag for Allure
func WrapOptionalError(err error) error
// WrapBrokenError returns error with a Broken tag for Allure
func WrapBrokenError(err error) error
// WrapRequireError returns error with flag for execute t.FailNow() and finish test after this error
func WrapRequireError(err error) error {
Add state in Result of test
Replacement for IsFailed()
(deprecated)
ResultStateSuccess
ResultStateBroken
ResultStateFail
func (r *testResults) GetResultState() ResultState
What's Changed
- [ISSUE-44] add broken validation by @siller174 in #61
Full Changelog: v0.1.16...v0.1.17