Skip to content

Group log output with the relevant test.Β #420

Closed
@jamestalmage

Description

@jamestalmage

Continuation from here.

  1. Use domains to determine which test console.log is used from.
  2. Provide a t.log method.

2 is a less controversial choice, but won't help for logging from production code.

One possibility for such grouping would be to only display the logs when the test failed. I think this is an especially a good idea for t.log, as it lets you leave them in your tests without consequence if you think they will help troubleshoot future failures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions