Skip to content

← All questions

@har:checkout warns that no recorded file exists — is there a way to declare it up front?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Writing the scenario before recording the traffic, which I thought was the intended order:

text
⚠ features/checkout/payment.feature:9  tags/har  @har:checkout has no recorded file under har/<env>/checkout.har (or checkout.api.har) yet.

It is only a warning and I understand why — the file genuinely is not there yet. But we run sdods lint --strict in the pipeline, so the warning is an error there, and the branch cannot merge until somebody records against staging.

Is there something that says "recorded on purpose later", or do we just carve an exception into the pipeline for files under features/checkout/? Recording first would mean writing the scenario twice.

No answers yet

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related