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

failOnMinTestsNotRun doesn't appear to work correctly #5017

Open
jve72 opened this issue May 2, 2024 · 0 comments
Open

failOnMinTestsNotRun doesn't appear to work correctly #5017

jve72 opened this issue May 2, 2024 · 0 comments

Comments

@jve72
Copy link

jve72 commented May 2, 2024

Description

Have an ADO pipeline using the JustMockVSTest@2 task, which sets a couple of env vars and then forwards the inputs and work to the VSTest@2 task.

I have a test dll that, while it does actually have tests in it, its build doesn't include the test adapter as part of its output, so VSTest is unable to enumerate the test cases to execute them.

I assumed the failOnMinTestsNotRun should catch this case, as there are no test cases run, but the build happily completes successfully!

Steps to reproduce

Explained in Description

Expected behavior

No tests run, task/build fails

Actual behavior

No tests run, task/build succeeds

Diagnostic logs

Attempt--1_p5u4gv.txt

Environment

This is a .Net 4.5 project on vmImage: 'windows-2019'.

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

No branches or pull requests

1 participant