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

Cannot run tests using 'build.cmd test' #11

Closed
KirillKaverin opened this issue Dec 22, 2019 · 4 comments
Closed

Cannot run tests using 'build.cmd test' #11

KirillKaverin opened this issue Dec 22, 2019 · 4 comments

Comments

@KirillKaverin
Copy link
Contributor

Version Information

Software Version(s)
.NET Core? 2.1.801, 3.1.100
.NET Full Framework? 4.8
Windows OS? Yes. Win 10 Pro 1903 (10.0.18362)

What is the expected behavior?

Build succeeded

What is the actual behavior?

Build failed

Other notes on how to reproduce the issue?

Error:
System.Exception: Test failed on "test" --configuration Release --test-adapter-path:. --logger:"nunit;LogFilePath=Y:\work\Coinbase.Commerce\__test\results.xml"
   в Fake.DotNetCli.Test@298-3.Invoke(String message) в D:\code\fake\src\app\FakeLib\DotNetCLIHelper.fs:line 298
   в Fake.DotNetCli.Test(FSharpFunc`2 setTestParams) в D:\code\fake\src\app\FakeLib\DotNetCLIHelper.fs:line 298
   в FSI_0005.Build.clo@130-12.Invoke(Unit _arg4) в Y:\work\Coinbase.Commerce\Source\Builder\build.fsx:line 134
   в Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) в D:\code\fake\src\app\FakeLib\TargetHelper.fs:line 626

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target      Duration
------      --------
Clean       00:00:00.0314926
restore     00:00:02.2319258
BuildInfo   00:00:00.0085929
dnx         00:00:04.6698891
test        Failure
Total:      00:00:11.7333330
---------------------------------------------------------------------
Status:     Failure
---------------------------------------------------------------------
---------------------------------------------------------------------
  1) System.Exception: Test failed on "test" --configuration Release --test-adapter-path:. --logger:"nunit;LogFilePath=Y:\work\Coinbase.Commerce\__test\results.xml"
   в Fake.DotNetCli.Test@298-3.Invoke(String message) в D:\code\fake\src\app\FakeLib\DotNetCLIHelper.fs:line 298
   в Fake.DotNetCli.Test(FSharpFunc`2 setTestParams) в D:\code\fake\src\app\FakeLib\DotNetCLIHelper.fs:line 298
   в FSI_0005.Build.clo@130-12.Invoke(Unit _arg4) в Y:\work\Coinbase.Commerce\Source\Builder\build.fsx:line 134
   в Fake.TargetHelper.runSingleTarget(TargetTemplate`1 target) в D:\code\fake\src\app\FakeLib\TargetHelper.fs:line 626
---------------------------------------------------------------------

Any possible solutions?

Update NUnit3TestAdapter package to the latest version (3.15.1)

@KirillKaverin KirillKaverin changed the title 'Cannot run tests using 'build.cmd test' Cannot run tests using 'build.cmd test' Dec 22, 2019
@bchavez
Copy link
Owner

bchavez commented Dec 22, 2019

I did a fresh checkout on a new drive and it works here.

TEST
Creating R:\Coinbase.Commerce\__test
dotnet "test" --configuration Release --test-adapter-path:. --logger:"nunit;LogFilePath=R:\Coinbase.Commerce\__test\results.xml"
Test run for R:\Coinbase.Commerce\Source\Coinbase.Tests\bin\Release\net45\Coinbase.Tests.dll(.NETFramework,Version=v4.5)
Microsoft (R) Test Execution Command Line Tool Version 16.3.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

A total of 1 test files matched the specified pattern.
  ! can_update_checkout_with_empty_requestinfo
  ! can_verify_a_webhook
  ! create_a_charge
  ! example
Test run in progress.Results File: R:\Coinbase.Commerce\__test\results.xml

Test Run Successful.
Total tests: 22
     Passed: 18
    Skipped: 1
 Total time: 2.1989 Seconds
Test run for R:\Coinbase.Commerce\Source\Coinbase.Tests\bin\Release\netcoreapp2.1\Coinbase.Tests.dll(.NETCoreApp,Version=v2.1)
Microsoft (R) Test Execution Command Line Tool Version 16.3.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

A total of 1 test files matched the specified pattern.
  ! can_update_checkout_with_empty_requestinfo
  ! can_verify_a_webhook
  ! create_a_charge
  ! example [1ms]
Test run in progress.Results File: R:\Coinbase.Commerce\__test\results.xml

Test Run Successful.
Total tests: 22
     Passed: 18
    Skipped: 1
 Total time: 2.3267 Seconds
Finished Target: test

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target      Duration
------      --------
Clean       00:00:00.0350631
restore     00:00:05.7456108
BuildInfo   00:00:00.0093939
dnx         00:00:08.5150726
test        00:00:08.1848619
Total:      00:00:22.5705610
---------------------------------------------------------------------
Status:     Ok
---------------------------------------------------------------------
R:\Coinbase.Commerce>dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.100
 Commit:    cd82f021f4

Runtime Environment:
 OS Name:     Windows
 OS Version:  6.1.7601
 OS Platform: Windows
 RID:         win7-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.1.100\

Host (useful for support):
  Version: 3.1.0
  Commit:  65f04fb6db

.NET Core SDKs installed:
  2.1.202 [C:\Program Files\dotnet\sdk]
  2.1.509 [C:\Program Files\dotnet\sdk]
  2.1.510 [C:\Program Files\dotnet\sdk]
  2.1.607 [C:\Program Files\dotnet\sdk]
  2.1.802 [C:\Program Files\dotnet\sdk]
  2.2.110 [C:\Program Files\dotnet\sdk]
  2.2.207 [C:\Program Files\dotnet\sdk]
  2.2.402 [C:\Program Files\dotnet\sdk]
  3.1.100 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

OS: Windows 7

@bchavez
Copy link
Owner

bchavez commented Dec 22, 2019

Also, I ran a build separately on Windows 10 on a different system and I cannot reproduce the problem you are seeing.

TEST
Creating S:\temp\Coinbase.Commerce\__test
dotnet "test" --configuration Release --test-adapter-path:. --logger:"nunit;LogFilePath=S:\temp\Coinbase.Commerce\__test\results.xml"
Test run for S:\temp\Coinbase.Commerce\Source\Coinbase.Tests\bin\Release\net45\Coinbase.Tests.dll(.NETFramework,Version=v4.5)
Microsoft (R) Test Execution Command Line Tool Version 16.3.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

A total of 1 test files matched the specified pattern.
  ! can_update_checkout_with_empty_requestinfo
  ! can_verify_a_webhook
  ! create_a_charge
  ! example [1ms]
Test run in progress.Results File: S:\temp\Coinbase.Commerce\__test\results.xml

Test Run Successful.
Total tests: 22
     Passed: 18
    Skipped: 1
 Total time: 6.3682 Seconds
Test run for S:\temp\Coinbase.Commerce\Source\Coinbase.Tests\bin\Release\netcoreapp2.1\Coinbase.Tests.dll(.NETCoreApp,Version=v2.1)
Microsoft (R) Test Execution Command Line Tool Version 16.3.0
Copyright (c) Microsoft Corporation.  All rights reserved.

Starting test execution, please wait...

A total of 1 test files matched the specified pattern.
  ! can_update_checkout_with_empty_requestinfo
  ! can_verify_a_webhook
  ! create_a_charge
  ! example [2ms]
Test run in progress.Results File: S:\temp\Coinbase.Commerce\__test\results.xml

Test Run Successful.
Total tests: 22
     Passed: 18
    Skipped: 1
 Total time: 7.5054 Seconds
Finished Target: test

---------------------------------------------------------------------
Build Time Report
---------------------------------------------------------------------
Target      Duration
------      --------
Clean       00:00:00.1407060
restore     00:00:24.2040547
BuildInfo   00:00:00.0464869
dnx         00:00:22.2115616
test        00:00:30.8204476
Total:      00:01:17.5698062
---------------------------------------------------------------------
Status:     Ok
---------------------------------------------------------------------
S:\temp\Coinbase.Commerce>dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   3.1.100
 Commit:    cd82f021f4

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.17763
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\3.1.100\

Host (useful for support):
  Version: 3.1.0
  Commit:  65f04fb6db

.NET Core SDKs installed:
  2.1.510 [C:\Program Files\dotnet\sdk]
  2.1.607 [C:\Program Files\dotnet\sdk]
  2.2.110 [C:\Program Files\dotnet\sdk]
  2.2.207 [C:\Program Files\dotnet\sdk]
  3.1.100 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.All 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.1.14 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 2.2.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

S:\temp\Coinbase.Commerce>

@bchavez bchavez closed this as completed Dec 22, 2019
@KirillKaverin
Copy link
Contributor Author

@bchavez I have my Win 10 in Parallels (like VirtualBox) and the source folder have been placed on Y:\ network drive. I have moved the source folder to the C:\ drive and the building started to work great. Thank for the help!

@bchavez
Copy link
Owner

bchavez commented Dec 23, 2019

Hi @KirillKaverin , no problem. I'm glad you were able to identify the issue. Please feel free to let me know if you have any other issues. 👍

Thanks,
Brian

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