Skip to content

v0.1.17

Compare
Choose a tag to compare
@siller174 siller174 released this 12 Feb 11:22
· 14 commits to master since this release
9c6558e

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

Full Changelog: v0.1.16...v0.1.17