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

Enable Unit-Tests for new providers #347

Merged
merged 1 commit into from
Oct 27, 2020
Merged

Conversation

schauerte
Copy link
Contributor

While investigating #339 I realized, that new providers (created based on the current template) do not run any unit-tests.
dotnet test exits immediately - without any output (at least on my machine: Ubuntu 20.4 with dotnet 3.1.403, no Mono).

After adding a reference to Microsoft.NET.Test.Sdk, the tests are discovered and executed successfully.

@schauerte
Copy link
Contributor Author

The build output now includes results for the created provider projects:

Test run for /home/runner/work/FSharp.TypeProviders.SDK/FSharp.TypeProviders.SDK/temp/tp281/tests/tp281.Tests/bin/Debug/netcoreapp3.1/tp281.Tests.dll(.NETCoreApp,Version=v3.1)
Microsoft (R) Test Execution Command Line Tool Version 16.6.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

A total of 1 test files matched the specified pattern.

Test Run Successful.
Total tests: 5
     Passed: 5
 Total time: 1.7405 Seconds

@dsyme
Copy link
Contributor

dsyme commented Oct 27, 2020

Thank you!!!!

@dsyme dsyme merged commit be5397d into fsprojects:master Oct 27, 2020
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