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

Make default test pattern narrower #17135

Closed
nohwnd opened this issue Nov 8, 2022 · 4 comments
Closed

Make default test pattern narrower #17135

nohwnd opened this issue Nov 8, 2022 · 4 comments
Assignees
Labels

Comments

@nohwnd
Copy link
Member

nohwnd commented Nov 8, 2022

Note

Issues in this repo are for tracking bugs, feature requests and questions for the tasks in this repo

For a list:
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

If you have an issue or request for the Azure Pipelines service, use developer community instead:

https://developercommunity.visualstudio.com/spaces/21/index.html )

Required Information

Entering this information will route you directly to the right team and expedite traction.

Question, Bug, or Feature?
Type: Feature

Enter Task Name: VSTestTask2

list here (V# not needed):
https://github.com/Microsoft/azure-pipelines-tasks/tree/master/Tasks

Environment

  • Server - Azure Pipelines or TFS on-premises? Both, this is not specific to one customer.

    • If using TFS on-premises, provide the version:

    • If using Azure Pipelines, provide the account name, team project name, build definition name/build number:

  • Agent - Hosted or Private: Both, this is not specific to one customer.

    • If using Hosted agent, provide agent queue name:

    • If using private agent, provide the OS of the machine running the agent and the agent version:

Issue Description

VSTest2 task specifies a very wide dll matching pattern which includes many unexpected dlls. This includes all TestPlatform dlls,
test framework dlls, and often dlls from local nuget package cache. This is slowing TestPlatform down, and highlights issue which was previously (in TestPlatform 17.2) silently ignored.

Instead a narrow pattern that matches dlls from bin folder only should be suggested as the default, as it fits most test projects we see in the wild and matches the common test dll naming pattern such as:

Product.Test.dll
Product.Tests.dll
ProductUnitTests.dll
Product.Unit.Tests.dll

It also does not match *TestPlatform*.dll or MSTest.TestFramework.dll, so no additional exclude patterns are necessary.

This leads to more correct test runs, and faster test runs as less dlls are included.

Related microsoft/vstest#3939

I've implemented the change here #16772 but there was never any feedback on it.

I am from the team that owns test platform.

Task logs

There are no logs to be shared, this is about configuration.

Troubleshooting

Error logs

@github-actions
Copy link

github-actions bot commented May 7, 2023

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

@github-actions github-actions bot added the stale label May 7, 2023
@nohwnd
Copy link
Member Author

nohwnd commented May 9, 2023

Not stale. I can't remove the label.

@github-actions github-actions bot removed the stale label May 9, 2023
@nohwnd
Copy link
Member Author

nohwnd commented Jun 7, 2023

Not stale, this is still causing us issues.

@rasunkar rasunkar self-assigned this Jun 7, 2023
Copy link

github-actions bot commented Dec 4, 2023

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants