microsoft / microsoft/storm

Output on error

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
2
Forks
2
Avg merge
12h 42m
Merged PRs (30d)
2

Description

Create a new API that allows a test to output a file/string only if there was an error in the erro report. Something like tc.LogOnError(fmt, ...), the logs would get rendered by Sprintf and stored in a queue, printed in FIFO order during the failure report. Possibly at the end. We could also consider adding a title, and on ADO print it as a subgroup.

This variable should be cleared to save memory if the test passed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the test context and failure-report path described in the issue, then trace how errors are rendered. Review the proposed LogOnError formatting, FIFO storage, optional title, ADO subgroup output, and cleanup after passing tests. Done means the behavior is specified and covered for both passing and failing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.