Xamarin Test is getting failed with multiple errors. Please suggest me regarding the same.

manojrdmanojrd Member ✭✭

1) Using mono gives me below error.

Time Elapsed 00:00:02.73

mono /Users/manojdeshpande/Downloads/NUnit.Console-3.10.0/bin/net20/nunit3-console.exe Test.kommmit.Offers/Test.kommmit.Offers.csproj --result=nunit-result1.xml -config=Debug
NUnit Console Runner 3.10.0 (.NET 2.0)
Copyright (c) 2019 Charlie Poole, Rob Prouse
Wednesday, May 22, 2019 8:04:05 PM
Runtime Environment
OS Version: MacOSX 17.7.0.0
CLR Version: 4.0.30319.42000

Test Files
Test.kommmit.Offers/Test.kommmit.Offers.csproj

Errors, Failures and Warnings

Invalid : /Users/manojdeshpande/.jenkins/workspace/Test_Local_Angebotsapp/Test.kommmit.Offers/bin/Debug/netcoreapp2.2/Test.kommmit.Offers.dll
File not found: /Users/manojdeshpande/.jenkins/workspace/Test_Local_Angebotsapp/Test.kommmit.Offers/bin/Debug/netcoreapp2.2/Test.kommmit.Offers.dll
Test Run Summary
Overall result: Failed
Test Count: 0, Passed: 0, Failed: 0, Warnings: 0, Inconclusive: 0, Skipped: 0
Start time: 2019-05-22 18:04:05Z
End time: 2019-05-22 18:04:06Z
Duration: 0.813 seconds

2) dotnet test gives me below error

  • dotnet test Test.kommmit.Offers/Test.kommmit.Offers.csproj
    Build started, please wait...
    /usr/local/share/dotnet/sdk/2.2.107/Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The reference assemblies for framework ".NETPortable,Version=v4.5,Profile=Profile259" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/Users/manojdeshpande/.jenkins/workspace/Test_Local_Angebotsapp/kommmit.Offers/kommmit.Offers/kommmit.Offers.csproj]
    /usr/local/share/dotnet/sdk/2.2.107/Microsoft.Common.CurrentVersion.targets(1179,5): error MSB3644: The reference assemblies for framework ".NETPortable,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [/Users/manojdeshpande/.jenkins/workspace/Test_Local_Angebotsapp/kommmit.Offers/kommmit.Offers/kommmit.Offers.csproj]
    Build step 'Execute shell' marked build as failure
    Recording NUnit tests results
    ERROR: Step ‘Publish NUnit test result report’ failed: No test report files were found or the NUnit input XML file contained no tests.
    Finished: FAILURE
Sign In or Register to comment.