Skip to content

Support java property to write actual as baseline  #9

@goatfryed

Description

@goatfryed

We want to introduce a property flag that just overwrites the baselines with the actuals. In this case, assertion is skipped.

E.g. in e2e of a new app version, it might be tedious otherwise to update all the baselines, especially if there are multiple steps involved and the test is slower. Both likely in e2e testing. Otherwise the developer has to accept one baseline, rerun, accept the next and so on. Instead they could just enable overwrite.

We want to warn people to carefully validate their new baselines. The docs should point out to commit beforehand and check the git diff. Additionally, we should consider to print a warning.

The default stays the same. Do not overwrite by default.

Consider support as convention config. If we add convention config as well, the cli property should support explicit enable, disable and keep the configured default, if not specified.

Consider support per assertion config. Might be useful to quickly enable, run the test, remove the line. Is it useful for more than one of things on assertion level? Should this respect the cli flag as well or does this force a mode?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions