Skip to content

Add end-to-end tests for report formatting #165

@gavv

Description

@gavv

Currently we have only one such test: TestE2EReportNames in e2e_report_test.go. It checks that test and request names are included into formatted report.

It would be useful to add more similar tests and check that some other elements from AssertionContext and AssertionFailure are included into the report: Path, Errors, Actual / Expected / Reference / Delta values (of a few different types, including AssertionRange and AssertionList).

This tests should not be strict to the report format, ideally they should not break often when we're changing formatting. They should not make many assumptions about the report structure, but instead should check whether it contains desired pieces of text. This is how TestE2EReportNames works currently.

Metadata

Metadata

Assignees

Labels

good first issueGood for newcomershelp wantedContributions are welcomeimportantImportant tasktestsImprovements or additions to tests

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions