Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet test cache/result output cache #41589

Closed
andresrsanchez opened this issue Jun 14, 2024 · 1 comment
Closed

dotnet test cache/result output cache #41589

andresrsanchez opened this issue Jun 14, 2024 · 1 comment
Labels
Area-DotNet Test untriaged Request triage from a team member

Comments

@andresrsanchez
Copy link

Is your feature request related to a problem? Please describe.

Hi, i would like to know the options that we currently have to cache test results.
Scenario: Github ARC (EphemeralRunners) and dotnet test, if your host disappear (spot instances) how can you retry only de failed/not executed tests?

  • In PHPUnit they have cacheResults.
  • In golang since 1.10 the default behaviour is to cache tests.
  • In python they have pytest-cache

What are our options in dotnet? Is the filter our only chance to try to hack it and get the same behaviour? Because i don't know the performance of that when you need to skip lets say 5k tests.

Describe the solution you'd like

A clear way to get the previous executed/failed tests and skip or not them, basically get the previous test output state.

Additional context

Somehow related #8643

Thanks!

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-DotNet Test untriaged Request triage from a team member labels Jun 14, 2024
@nohwnd
Copy link
Member

nohwnd commented Nov 13, 2024

Yes filter can be used for this. There is also translation layer that gives you programatic api to communicate with the test runner. There you can collect all the failed tests and send them for execution. E.g. how VS would do it.

https://github.com/microsoft/vstest/blob/main/playground/TestPlatform.Playground/Program.cs this project is a good place to start experimenting with the translation layer of vstest.

@nohwnd nohwnd closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-DotNet Test untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants