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

Target E2E tests with net472 only on Windows #910

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

DaveTryon
Copy link
Contributor

@DaveTryon DaveTryon commented Jan 29, 2025

While helping with #881, I noticed that the Microsoft.Sbom.Targets.E2E.Tests project was targeting net472 on non-windows platforms, but that none of them were actually running. Tests for Linux, macOS, and macOS-arm64 all produced the error message, with minor variation in the root path (line breaks added to make it simpler to read):

No test is available in <root>/s/test/Microsoft.Sbom.Targets.E2E.Tests/bin/Debug/net472/Microsoft.Sbom.Targets.E2E.Tests.dll.
Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.

The Microsoft.Sbom.Targets.Tests project already restricts net472 targeting to Windows. This PR simply brings the same pattern to the E2E tests. It doesn't actually change what tests are running, but explicitly identifies the effective state of the tests. This change is needed for #881 to proceed successfully.

@DaveTryon DaveTryon requested a review from a team as a code owner January 29, 2025 23:53
@DaveTryon
Copy link
Contributor Author

/azp run

@DaveTryon DaveTryon merged commit 6ac7a8d into main Jan 31, 2025
4 checks passed
@DaveTryon DaveTryon deleted the DaveTryon/restrict-net472-targeting branch January 31, 2025 01:07
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.

2 participants