Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

No tests found to run for netcore2.1 app in Visual Studio 2019 #49

Open
fbehrens opened this issue Apr 20, 2019 · 3 comments
Open

No tests found to run for netcore2.1 app in Visual Studio 2019 #49

fbehrens opened this issue Apr 20, 2019 · 3 comments

Comments

@fbehrens
Copy link

Hello,

thanks for offering the software,

I followed the installation instructions but VS can't find my expecto tests,

It Ok that it is not working,

but it would be helpul to have the requirements in the README.

This is the message i got

[4/20/2019 11:58:47 PM Informational] Executing all tests in project(s): checkerTests
[4/20/2019 11:58:47 PM Informational] No tests found to run.

here is my paket setup

23> Get-Content ..\..\paket.dependencies
source https://www.nuget.org/api/v2
nuget Expecto.FsCheck
nuget Expecto.VisualStudio.TestAdapter version_in_path: true
nuget Argu
nuget Unquote
nuget FSharp.Core
group Build
  source https://api.nuget.org/v3/index.json
  nuget FAKE

24> Get-Content .\paket.references
Expecto.FsCheck
Unquote
Expecto.VisualStudio.TestAdapter

25> dir
    Verzeichnis: C:\scripts2\checker\src\checkerTests
Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       20.04.2019     12:05                bin
d-----       20.04.2019     23:43                obj
-a----       20.04.2019     11:48            574 checkerTests.fsproj
-a----       20.04.2019     11:48            402 fileTests.fs
-a----       20.04.2019     11:48            119 Main.fs
-a----       20.04.2019     12:42             60 paket.references
-a----       20.04.2019     12:04            409 regexTests.fs
-a----       20.04.2019     11:48            405 subtitleTests.fs

26> ..\..\.paket\paket.exe install
Paket version 5.203.2
Skipping resolver for group Build since it is already up-to-date
Skipping resolver for group Main since it is already up-to-date
C:\scripts2\checker\paket.lock is already up-to-date
Installing into projects:
 - Creating model and downloading packages.
 - Installing for projects
   - src/check/paket.references -> src/check/check.fsproj
   - src/checker/paket.references -> src/checker/checker.fsproj
   - src/checkerTests/paket.references -> src/checkerTests/checkerTests.fsproj
Performance:
 - Disk IO: 53 milliseconds
 - Runtime: 1 second

27> ..\..\.paket\paket.exe show-installed-packages
Paket version 5.203.2
Build FAKE - 5.8.4
Main Argu - 5.2
Main Expecto.FsCheck - 8.10.1
Main Expecto.VisualStudio.TestAdapter - 10.0.2
Main FSharp.Core - 4.6.2
Main Unquote - 4.0
Performance:
 - Runtime: 573 milliseconds

28> ..\..\.paket\paket.exe --version
Paket version 5.203.2


# vs studio verion info
Microsoft Visual Studio Enterprise 2019
Version 16.0.2
VisualStudio.16.Release/16.0.2+28803.202
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Enterprise

NuGet Package Manager   5.0.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

@lfr
Copy link

lfr commented May 9, 2019

Same here (netcoreapp 2.2)

@hpsbranco
Copy link

Try installing YoloDev.Expecto.TestSdk. It solved for me.

@lfr
Copy link

lfr commented May 20, 2019

Just installing it didn't solve it for me, however creating a new project with the Expecto template did (which comes pre-configured with YoloDev's test adapter)

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

No branches or pull requests

3 participants