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

Autowatch and Global pattern #160

Closed
AlexTeixeira opened this issue Oct 29, 2018 · 4 comments
Closed

Autowatch and Global pattern #160

AlexTeixeira opened this issue Oct 29, 2018 · 4 comments

Comments

@AlexTeixeira
Copy link

Visual Studio Code : 1.29.0-insider
.NET Core Test Explorer : 0.5.4
OS Version : macOS Mojave 10.14

Hello,

I'm trying to activate autowatch option, to improve increase my productivity on developing with TDD approach.

I'm using a global pattern : *test/*/Test.csproj and when I active autowatch, only the first of the list is executed.

Here the logs from console :

MacbookAlex:Gardendynamics OrcusZ$ cd "/Users/OrcusZ/Projects/Gardendynamics/test/Business/Gardendynamics.CalculationTest"
MacbookAlex:Gardendynamics.CalculationTest OrcusZ$ dotnet watch test --logger "trx;LogFileName=/var/folders/kd/0m3yxst15n36rbl2691k24ch0000gn/T/test-explorer-6IsSeE/autoWatch.trx"
watch : Started
/usr/local/share/dotnet/sdk/2.1.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ObsoleteReferences.targets(33,5): warning : L'utilisation de DotNetCliToolReference pour référencer 'Microsoft.DotNet.Watcher.Tools' est obsolète et peut être supprimée de ce projet. Cet outil est fourni en bundle par défaut dans le kit SDK .NET Core. [/Users/OrcusZ/Projects/Gardendynamics/test/Business/Gardendynamics.CalculationTest/Gardendynamics.CalculationTest.csproj]
La build a démarré. Patientez…
/usr/local/share/dotnet/sdk/2.1.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ObsoleteReferences.targets(33,5): warning : L'utilisation de DotNetCliToolReference pour référencer 'Microsoft.DotNet.Watcher.Tools' est obsolète et peut être supprimée de ce projet. Cet outil est fourni en bundle par défaut dans le kit SDK .NET Core. [/Users/OrcusZ/Projects/Gardendynamics/test/Business/Gardendynamics.CalculationTest/Gardendynamics.CalculationTest.csproj]
Fin de la build.

Série de tests pour /Users/OrcusZ/Projects/Gardendynamics/test/Business/Gardendynamics.CalculationTest/bin/Debug/netcoreapp2.0/Gardendynamics.CalculationTest.dll(.NETCoreApp,Version=v2.0)
Outil en ligne de commande d'exécution de tests Microsoft (R), version 15.7.0
Copyright (c) Microsoft Corporation. Tous droits réservés.

Démarrage de l'exécution de tests, patientez...
Results File: /var/folders/kd/0m3yxst15n36rbl2691k24ch0000gn/T/test-explorer-6IsSeE/autoWatch.trx

Nombre total de tests : 3. Réussis : 3. Non réussis : 0. Ignorés : 0.
Série de tests réussie.
Durée d'exécution des tests : 1,1115 Secondes
watch : Exited
watch : Waiting for a file to change before restarting dotnet...

When I reload the .net explorer, I back to working explorer with all projects

capture d ecran 2018-10-29 a 21 50 31

I don't know if you can integrate it in current version or I you can integrate it to PR #83

@stefanforsberg
Copy link
Collaborator

Auto watch is only implemented for the first project as you noticed. This was documented in the readme at some point but it seems to have fallen of 👼

I don't remember at the top of my head exactly why it was hard(er) to implement it for multiple test projects, I'll take a look at it in the following days and see if anything jobs my memory.

@stefanforsberg
Copy link
Collaborator

0.6.5 was just released which should allow to watch multiple directories.

@AlexTeixeira
Copy link
Author

I will test on my projects and add feedback here

@AlexTeixeira
Copy link
Author

@stefanforsberg works perfectly in my projects. Thanks :)

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

2 participants