adamchester / expecto-adapter

Visual Studio test adapter for Expecto (https://github.com/haf/expecto)
MIT License
28 stars 16 forks source link

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

Open fbehrens opened 5 years ago

fbehrens commented 5 years ago

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 commented 5 years ago

Same here (netcoreapp 2.2)

hpsbranco commented 5 years ago

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

lfr commented 5 years ago

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)