The Wayback Machine - https://web.archive.org/web/20230307184818/https://github.com/microsoft/vscode/issues/134970
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

Testing API: "Retired" TestItem "state" #134970

Open
matepek opened this issue Oct 13, 2021 · 8 comments
Open

Testing API: "Retired" TestItem "state" #134970

matepek opened this issue Oct 13, 2021 · 8 comments
Assignees
Labels
feature-request Request for new features or functionality testing Built-in testing support
Milestone

Comments

@matepek
Copy link

matepek commented Oct 13, 2021

There was a feature request: #115086

In case of the final API I don't know how to implement it. I cannot find the feature.
I guess it is removed. I think my users would love the feature.

Would you help me on this @connor4312 ?

@connor4312 connor4312 added feature-request Request for new features or functionality testing Built-in testing support labels Oct 13, 2021
@connor4312 connor4312 added this to the Backlog milestone Oct 13, 2021
@matepek
Copy link
Author

matepek commented Oct 14, 2021

Also there is a feature related to this which might worth to be considered. Test Explorer had an "auto-run" option.
If it is checked and there is a retired event about a test then a test-run will be created for those. (in case of test-explorer)

I can manually add option like this but it is a nice feature I believe.
A "Run retired/stale tests only" command can be useful also... maybe...

@connor4312
Copy link
Member

The Test Explorer UI extension used retired states to drive autorun. I would instead like to have the extension drive its auto autorun (#134941), so retired states are no longer necessary for this use case and I'm not sure whether I want to bring them back.

@matepek
Copy link
Author

matepek commented Oct 14, 2021

The retired state basically an indicator in the tree view and the user can see if a test's result is outdated.
In case of c++ test executables I can detect the change of the moditime and mark all the tests coming from the executable as outdated. I love this feature. The way ho it does it that the retired tests' icons are 20% transparent I think. (Tooltip also could indicate it) Or maybe if I could just clear the state but that is less useful because it is nice to know what was the previous state of the test.

The auto-run is built upon this indeed. I can implement it easily if you don't wish to add it.
Regarding to this: It would be nice if we could contribute to the "..." menu. (adding new items. In this case: one with a checkbox)

@connor4312
Copy link
Member

You can contribute to all test menus like any other menu 🙂 https://code.visualstudio.com/api/references/contribution-points#contributes.menus

@matepek
Copy link
Author

matepek commented Nov 20, 2021

Hello,
Any news on this front?

2 similar comments
@matepek
Copy link
Author

matepek commented Dec 3, 2021

Hello,
Any news on this front?

@matepek
Copy link
Author

matepek commented Oct 15, 2022

Hello,
Any news on this front?

@xisui-MSFT
Copy link
Contributor

Hi @connor4312, is there a way to mark some tests as outdated without auto rerun? In our extension, we would like to mark some tests as outdated in cases like some configs change, but we prefer not to do auto rerun since rebuilding the project may take a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality testing Built-in testing support
Projects
None yet
Development

No branches or pull requests

3 participants