nunit-console

Database for Importing NUnit results?

I have a large set of NUnit tests; I need to import the results from a given run into a database, then characterize the set of results and present them to the users (email for test failures, web presentation for examining results). I need to be tracking multiple runs over time, as well (for reporting failure rates over time, etc.). The...

How to run explicit test cases of Nunit

Hi, My test suite project contains some explicit test cases, now i want to execute the test cases with the help of Nunit-console.exe. When i execute the test cases, the explicit test cases were excluded from the execution. So, i have tried to execute the test cases using the batch file in the following manner. nunit-console.exe test1.d...

Another PartCover Empty Report Question

I've tried the steps listed here, but I still can't get partcover to generate any output other than: <?xml version="1.0" encoding="utf-8"?> <PartCoverReport ver="2.2.0.36423" /> Here is what I've done: Installed 2.2 instead of 2.3 Ran corflags /Force /32bit+ PartCover.exe Ran corflags /Force /32bit+ PartCover.browser.exe Here is m...

Powershell error in Executing NUnit test

Hi, This might sound silly but I have been trying to execute a NUnit test using powershell script, had several attempts but no hope. is there different format or do I need to add a plugin? Any help would be appriciated... Command = "c:\Program Files\NUnit 2.4.8\bin\nunit-console.exe" /config=Release "C:\projects\IntegrationTests\In...

nunit-console.exe hangs after finishing test run

Hi We got a problem with NUnit 2.5.3: nunit-console.exe does not return after finishing all tests. The process hangs forever. Example: All tests succeed, but it keeps doing something. Output: Runtime Environment - OS Version: Microsoft Windows NT 5.1.2600 Service Pack 3 CLR Version: 2.0.50727.3603 ( Net 2.0.50727.3603 ) ProcessModel...

NUnit fail with System.ArgumentException: The net-4.0 framework is not available

Exception: ProcessModel: Default DomainUsage: Single Execution Runtime: net-4.0 Unhandled Exception: System.ArgumentException: The net-4.0 framework is not available Parameter name: framework at NUnit.Util.TestAgency.GetAgent(RuntimeFramework framework, Int32 waitTime, Boolean enableDebug) at NUnit.Util.ProcessRunner.Load(TestPa...

NUnit-console 2.5.4 not capable of running multiple assemblies?

I am having problems running tests with the command line NUnit test runner. I am using version 2.5.4 with .NET 4 on an x64 machine. Using the following line results in a failure "Could not load file or assembly 'bar' or one of its dependencies. The system cannot find the file specified." nunit-console-x86 foo.dll bar.dll /framework=4....

Output from external exe and my custom objects in powershell

(Sorry for strange title, haven't come up with anything better..) Background I use nunit-console to test my assemblies. It is called like this (simplified): function Test-ByNunit { param($assembly, $tempFile = 'c:\temp\nunit.xml') & <path-to-nunit-console> $assembly /nologo /xml:$tempFile @othparam } Test-ByNunit c:\temp\myAs...

nunit-console.exe problem with Mono

I could make a dll for NUnit (http://stackoverflow.com/questions/2967726/nunit-test-under-mono), but when I tried to run in with nunit-console.exe I get the following error message. Runtime Environment - OS Version: Unix 10.3.0.0 CLR Version: 2.0.50727.1433 ( 2.6.4 (tarball Thu Apr 22 13:24:33 MDT 2010) ) ProcessModel: Default ...

Run Mutiple Test using Nunit-Console

Hi, I have 10 Nunit test fixtures, now i want to run only 3 test fixtures using nunit-console application, Is it possible? How to do that? Note: my Nunit version : 2.4.8 Thanks, Ravivarman ...

Programatically Gathering NUnit results

Hi. I am running some NUnit tests automatically when my nightly build completes. I have a console application which detects the new build, and then copies the built MSI's to a local folder, and deploys all of my components to a test server. After that, I have a bunch of tests in NUnit dll's that I run by executing "nunit-console.exe"...

NUNIT Fails individual dlls but works fine with .nunit file

Can't figure out why my nunit tests fail when i call the .dll files individually however when i call the below .nunit file through nunit-console-x86.exe I suspect it has something to do with the config file. Some of these test require configuration information from this config file. Some do not, and it seems that the ones that don't, pa...

Pass parameters via command line to NUnit

Is it somehow possible to pass values to NUnit tests via command line? My tests use a certain URL. I have different instances of my code at different URLs and would like to specify the URL via command line. App.config is not an option, because I want to run the tests for different URLs via a batch file. ...

Running nunit-console.exe fails while GUI is also running

I'm trying to run nunit-console.exe from a script and I get an 'Unable to locate fixture' error, but only when I have NUnit GUI also running. Once I close the NUnit GUI the script runs the tests just fine. Here is nunit command being executed by the script; "C:\Dev\Test1\Build\NUnit\nunit-console.exe" "C:\Dev\Test1\Tests\bin\Release\T...

NUnit with Rhino Mocks exception: Why is it throwing this exception?

I'm getting an exception that really makes no sense to me whatsoever. I have an Expect call for a method that takes 3 arguments into it: The types are called CallContext, IDal, and List. NUnit throws me 2 exceptions: One for not expecting a method call that happened where the types are CallContext, System.Object, and List, and one fo...

Help me avoid this NullReferenceException (using Rhino Mocks)

I'm currently trying to get one of my unit tests to work, but there is one thing in the way. I have a class called AccountingScheduleLookup that has an ID field attached to it that's read-only. When I try to mock a call to a method that uses this ID field it throws me a lovely NullReferenceException on that particular line of code. This ...

Running all NUnit tests in all assemblys from Cygwin command line

Hey all, I'm trying to create a short bash script someone could run in cygwin to execute all nunit tests in a .NET project using nunit-console. Currently i have the system version of nunit aliased to "nunit" so if i run "nunit" it will execute nunit-console. My first step was to try and find all the test assemblies recursively. This ...

Does anyone know where to find NUnit console exit codes meanings?

I am getting error message from my MSBuild: "nunit-console.exe" exited with code -100. Does anyone know where NUnit console exit codes meanings can be found? ...