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

Is this compatible for .netCore 2.0 with cake script #620

Closed
vbpradeep opened this issue May 6, 2019 · 5 comments
Closed

Is this compatible for .netCore 2.0 with cake script #620

vbpradeep opened this issue May 6, 2019 · 5 comments
Labels

Comments

@vbpradeep
Copy link

  1. I am using .NetCore 2.0 based application.
  2. i needs to run testcases in console with cake script is this compatible for core projects? if yes please give some reference or sample codes.

i have faced below mentioned issue.

#487

@rprouse
Copy link
Member

rprouse commented May 7, 2019

@vbpradeep to run .NET Core tests you need to run them with dotnet test or as NUnitLite self-executing console apps. Since you are using Cake, I'd suggest looking at the various Test tasks here, https://cakebuild.net/dsl/dotnetcore/, most likely this task, https://cakebuild.net/api/Cake.Common.Tools.DotNetCore/DotNetCoreAliases/8191BBC4

I'd suggest getting your tests running with dotnet run on the command line first using the MS docs at https://docs.microsoft.com/en-ca/dotnet/core/testing/unit-testing-with-nunit then move on to your Cake script.

@vbpradeep
Copy link
Author

Hi @rprouse ,

thanks i have made the changes, but i can't able to produce report format as html in this case. is any possibility to generate report in web page? If possible please give some reference here.

@rprouse
Copy link
Member

rprouse commented May 12, 2019

@vbpradeep NUnit doesn't produce HTML test results although many third-party build systems do. For example, you can publish your test results in Azure DevOps build pipelines and they will produce HTML results.

See this example from our test runs, https://nunit.visualstudio.com/NUnit/_build/results?buildId=1648&view=ms.vss-test-web.build-test-results-tab

I am going to close this as a question. Feel free to continue posting, we will see it.

@rprouse rprouse closed this as completed May 12, 2019
@rprouse rprouse added this to the Closed Without Action milestone May 12, 2019
@vbpradeep
Copy link
Author

Hi @rprouse ,

thank you for this well explained reply. but i had an another query, as you have said many third party had to generate html report, but have got test report from dotnettest is like .trx formated report only, even xml also i can generate too. but whenever search there is no other source found to convert like trx to html from cake build. can i get any reference, thanks in advance.

Regards,
Pradeep Kumar B

@rprouse
Copy link
Member

rprouse commented May 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants