Skip to content

v0.1.3

Compare
Choose a tag to compare
@siller174 siller174 released this 24 Jul 07:47
· 106 commits to master since this release
dbbed9e

Features:

1. Update to allure v0.1.12 #12

2. Add some logs in console #10

3. Retries for failed tests #9

		cute.NewTestBuilder().
			Title("AllureRunner").
			Description("some_description").
			Create().
			RequestRepeatDelay(3*time.Second). // delay before new try
			RequestRepeat(3).           // count attempts

Allure:
image

4. Reimplement assert #13

Present assert will not return error, if value == 0 or value != 0

5. New JSON assert

NotEmpty assert like Preset, but value can be 0 or null

6. Change cute error interfaces

Error with allure parameters

Old:

type ExpectedError interface {
	GetActual() interface{}
	GetExpected() interface{}
}

New:
If function returns error, which implement this interface, parameters will add to allure step

type WithFields interface {
	GetFields() map[string]interface{}
	PutFields(map[string]interface{})
}

Optional error

Old:

type OptionalError interface {
	IsOptional() bool
	SetOptional()
}

New:

type OptionalError interface {
	IsOptional() bool
	SetOptional(bool)
}