Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:11
    mikkelbu milestoned #3299
  • 16:45
    jnm2 commented #3353
  • 16:41
    ViktorHofer commented #3353
  • 16:39
    jnm2 edited #3353
  • 16:38
    jnm2 opened #3353
  • 16:30
    TobiasSekan commented #3350
  • 16:28
    TobiasSekan commented #3350
  • 11:50
    mikkelbu milestoned #3351
  • 08:11
    as3mbus commented #3339
  • 07:53
    mikkelbu commented #3339
  • 07:51
    mikkelbu labeled #3339
  • Aug 21 19:46
    CharliePoole labeled #3351
  • Aug 21 19:45
    CharliePoole closed #3351
  • Aug 21 19:45
    CharliePoole commented #3351
  • Aug 21 17:31
    ChrisMaddock transferred #675
  • Aug 21 17:31
    ashishdawale20 opened #3352
  • Aug 21 17:21
    Anshika121 commented #3351
  • Aug 21 15:26
    CharliePoole commented #675
  • Aug 21 15:24
    CharliePoole commented #675
  • Aug 21 10:48
    nvborisenko closed #3299
Nikolay Borisenko
@nvborisenko
Dedicated server for storing results, and with real-time reporting feature
Mehmet
@mehmetgoksu
actually need offline report
and its must be compatible with .net core 2
Nikolay Borisenko
@nvborisenko
Useful more for end to end tests, not unit
Marius Morar
@marius02
Hello, has anyone imported the Nunit test results into a database ? and then make some queries over them(like get total number of tests/failing/passing...) , if so can you give me some hints, I was trying with Mongodb, but I still have issues
Joseph Musser
@jnm2
@marius02 I haven't heard of that, but here are the docs for the XML schema: https://github.com/nunit/docs/wiki/Test-Result-XML-Format
and XSD: https://github.com/nunit/nunit/blob/master/src/NUnitFramework/framework/Schemas/TestResult.xsd
The total number of tests passing/failing/etc is cached in the XML for every parent element, if that helps.
arsam31
@arsam31
I have a question
anyone online?
please
How can I convert NUNIT project of visual studio to executable file?

I have created a project using NUNIT and installed few packages before creating the tests,which are : NUNIT, NUNIT3TESTADAPTER, SELENIUM.SUPPORT, SELENIUM.WEBDRIVER, SELENIUM.WEBDRIVER.CHROMEDRIVER.

To make the tests I had only url of a website which I used to create all the tests(successfully). Now I want to make an exe so I can give it to other people to run the exe file and see the test performing automatically through automation browser. but I do not know what to do and how to do. Any help would be appreciated.

I have searched alot on google but could not find an answer.

please helpp
se5a
@se5a
interesting idea, your test project will be compiling to a dll currently, you could try changing that in the project settings
but you might be better to create another project to handle the browser stuff and call your test project
Oleksandr Liakhevych
@Dreamescaper
I think you can create separate console project, and use nunitLite package to run your tests from there.
Ровшан Базаров
@karterfree_gitlab
Hello everyone. I have a question.
I create instance of NUnit3FrameworkDriver from my current AppDomain and I want to use static properies of static classes. But. When I call those static mpoperies from test method, I got null as response.
How can I get values that I prepared before run test with custom instance of NUnit3FrameworkDriver ?
Nikolay Borisenko
@nvborisenko
I guess "FrameworkDriver" and "Test" live in different AppDomains
Oskar Berggren
@oskarb
Nunit console 3.10. Any idea why some test failures are reported in the output from each test as each test finishes but failures from other test cases are only reported in the summary at the end after all tests have finished? Parallel execution not used. This causes Teamcity to not detect failures for the tests where the failure is only listed in the summary output.
Oskar Berggren
@oskarb
The failures that are reported for each affected test case actually occurs in OneTimeSetup. The failures (for other test cases) that are only reported in the summary occur in regular [Setup].
z002Holpp
@z002Holpp
Hi guys, any Idea if the test report of "old" release builds (e.g. for NUnit 3.12 -> https://nunit.visualstudio.com/NUnit/_build/results?buildId=1674) is archived somewhere? I desperately need the list of tests executed in the CI for this build.... Are they archived somewhere?
Mikkel Nylander Bundgaard
@mikkelbu
@z002Holpp The artifacts on Azure DevOps are kept in 30 days as far as I can remember, and we have not changed this default. So the artifacts of build 1674 are lost. Your only option is to run the cake script at that time to see which tests were executed.
z002Holpp
@z002Holpp
@mikkelbu Thanks for your answer. What exactly do you mean with running the cake script? How would I do that?
Mikkel Nylander Bundgaard
@mikkelbu
@z002Holpp If you download or clone the nunit source code (from https://github.com/nunit/nunit.git) then you can checkout the code at the point in time that corresponds to 1674, and then run .\build.ps1 -Target Test from within the nunit folder (if you are on windows, there is a matching build.sh for linux). There is more information about building the source code in https://github.com/nunit/nunit/blob/master/BUILDING.md.
Ps. Why do you need the executed tests at this point in time?
z002Holpp
@z002Holpp
@mikkelbu Thanks! Ill give it a try :)
Terje Sandstrom
@OsirisTerje
Are anyone of you able to test a pre-release of the NUnit3TestAdapter. It contains only code for speeding up Visual Studio testing. Would like to see if it breaks anything else (it should not...., but....). Can be downloaded from https://www.myget.org/feed/nunit/package/nuget/NUnit3TestAdapter/3.15.0-dev-01121
Julien
@LiohAu
Hello
Maybe anybody can help me here
I use NUnit 3 as test framework in combination with Specflow scenarios. All the scenarios have a unique tag defined which is an id (@213 for instance). Those tags are converted to categories (if I understood correctly), for NUnit.
Now I would like to run with Nunit 3 console runner, those scenarios, targeting a list of scenario IDs
so I guess I should have something like --where="cat == 213"
Now my issue is that I have a JSON file containing an array with all those IDs (categories), like that : [ 213, 345, 678 ... ]
what would be the easiest way to make nunit execute all the tests having those categories ?
Terje Sandstrom
@OsirisTerje
@jnm2 Are you on top of the new process for .net foundation news ? Did you follow the slack discussions and the move to github ? And, for August, we should add the Adapter 3.14 release. Might manage 3.15 too.
Joseph Musser
@jnm2

@karterfree_gitlab

I create instance of NUnit3FrameworkDriver from my current AppDomain and I want to use static properies of static classes. But. When I call those static mpoperies from test method, I got null as response.

When you call IFrameworkDriver.Load(string testAssemblyPath, IDictionary<string, object> settings);, you can pass test parameters through to the framework by adding the key FrameworkPackageSettings.TestParametersDictionary an IDictionary<string, string> value, e.g. new Dictionary<string, string> { ["MyParam"] = "MyValue" }

(See how it is decoded on the framework side: https://github.com/nunit/nunit/blob/master/src/NUnitFramework/framework/Api/DefaultTestAssemblyBuilder.cs#L139-L147)

The tests are then intended to use TestContext.TestParameters["MyParam"] etc and deserialize from the string. https://github.com/nunit/docs/wiki/TestContext#testparameters

@oskarb

Nunit console 3.10. Any idea why some test failures are reported in the output from each test as each test finishes but failures from other test cases are only reported in the summary at the end after all tests have finished? Parallel execution not used. This causes Teamcity to not detect failures for the tests where the failure is only listed in the summary output.

I'm not sure. We'd appreciate if you have time to file at https://github.com/nunit/nunit-console/issues.

Joseph Musser
@jnm2

@OsirisTerje

@jnm2 Are you on top of the new process for .net foundation news ? Did you follow the slack discussions and the move to github ? And, for August, we should add the Adapter 3.14 release. Might manage 3.15 too.

No, I did not hear about this. I haven't had time to keep up with https://netfoundation.slack.com.

@OsirisTerje Sounds good, I will send a PR to https://github.com/dotnet-foundation/newsletter/blob/master/2019/08.md in about ten days when I normally do our newsletter.
I'll ping y'all there probably.
manbadalyan
@manbadalyan
Hi,
I use NUnit core 2.2, but when I use not static method for generating unique test data, test not running. Can someone help?
it seems your test case source must be static
Joseph Musser
@jnm2
@manbadalyan Nikolay is correct. Your only option currently is to generate unique test data from within a static method or static property.
Are you having trouble with that?