Skip to content

fix: prevent LastRunReporter in --list mode#39917

Open
Nethranagaraj14 wants to merge 1 commit intomicrosoft:mainfrom
Nethranagaraj14:main
Open

fix: prevent LastRunReporter in --list mode#39917
Nethranagaraj14 wants to merge 1 commit intomicrosoft:mainfrom
Nethranagaraj14:main

Conversation

@Nethranagaraj14
Copy link
Copy Markdown

Fixes an issue where LastRunReporter was initialized even in --list mode.
Although writing to .last-run.json was skipped internally, the reporter was still being created and attached, which is unnecessary for list-only execution.
This change ensures that LastRunReporter is only used during actual test runs and not during --list mode, making list execution fully side-effect free.
This aligns with expected behavior of --list being a read-only operation.

@Nethranagaraj14
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant