From e4120a5c84ae6d2ac944c0d786c09cba1019fdd9 Mon Sep 17 00:00:00 2001 From: Rikki Tooley Date: Wed, 26 Dec 2018 12:58:11 +0000 Subject: [PATCH] Update run-tests.ps1 to work with dotnet test command - SQLite tests don't run properly though --- run-tests.ps1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/run-tests.ps1 b/run-tests.ps1 index 34e87d4..243dc09 100644 --- a/run-tests.ps1 +++ b/run-tests.ps1 @@ -1,3 +1,11 @@ -$testPaths = "src\IF.Lastfm.Core.Tests\bin\Release\IF.Lastfm.Core.Tests.dll src\IF.Lastfm.Core.Tests.Integration\bin\Release\IF.Lastfm.Core.Tests.Integration.dll src\IF.Lastfm.SQLite.Tests.Integration\bin\Release\IF.Lastfm.SQLite.Tests.Integration.dll" +$ErrorActionPreference = 'Continue' -nunit-console src\IF.Lastfm.Core.Tests\bin\Release\netcoreapp2.1\IF.Lastfm.Core.Tests.dll src\IF.Lastfm.Core.Tests.Integration\bin\Release\netcoreapp2.1\IF.Lastfm.Core.Tests.Integration.dll src\IF.Lastfm.SQLite.Tests.Integration\bin\Release\netcoreapp2.1\IF.Lastfm.SQLite.Tests.Integration.dll \ No newline at end of file +$testPaths = @( + "src\IF.Lastfm.Core.Tests\", + "src\IF.Lastfm.Core.Tests.Integration\", + "src\IF.Lastfm.SQLite.Tests.Integration\" +) + +foreach ($path in $testPaths) { + dotnet test $path +} \ No newline at end of file