Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Minimum NUnit binaries for an OSS project

Open Source projects that ship with unit tests based on NUnit also usually ship the NUnit runners and accompanying binaries. For NUnit 2.4.8, distributing its bin directory verbatim with the actual project amounts to 46 files and a blank addins directory. What would be the minimum set of files needed if all one wanted was to distribute the GUI and console runners along with the base nunit.framework.dll required for authoring tests (and without the mocking infrastructure)?

For reference, the NUnit 2.4.8 bin directory looks like this:

  • addins/
  • clr.bat
  • failure.jpg
  • fit.dll
  • ignored.jpg
  • loadtest-assembly.dll
  • mock-assembly.dll
  • nonamespace-assembly.dll
  • notestfixtures-assembly.dll
  • nunit.core.dll
  • nunit.core.extensions.dll
  • nunit.core.interfaces.dll
  • nunit.core.tests.dll
  • nunit.exe
  • nunit.exe.config
  • nunit.extensions.tests.dll
  • nunit.fixtures.dll
  • nunit.fixtures.tests.dll
  • nunit.framework.dll
  • nunit.framework.extensions.dll
  • nunit.framework.tests.dll
  • nunit.framework.xml
  • nunit.mocks.dll
  • nunit.mocks.tests.dll
  • nunit.uikit.dll
  • nunit.uikit.tests.dll
  • nunit.util.dll
  • nunit.util.tests.dll
  • nunit-console.exe
  • nunit-console.exe.config
  • nunit-console.tests.dll
  • nunit-console-runner.dll
  • nunit-console-x86.exe
  • nunit-console-x86.exe.config
  • NUnitFitTests.html
  • nunit-gui.tests.dll
  • nunit-gui-runner.dll
  • NUnitTests.config
  • NUnitTests.nunit
  • nunit-x86.exe
  • nunit-x86.exe.config
  • runFile.exe
  • runFile.exe.config
  • success.jpg
  • test-assembly.dll
  • test-utilities.dll
  • timing-tests.dll
like image 682
Atif Aziz Avatar asked Dec 04 '08 21:12

Atif Aziz


People also ask

Is NUnit open source?

NUnit is an open-source unit testing framework for the . NET Framework and Mono. It serves the same purpose as JUnit does in the Java world, and is one of many programs in the xUnit family.

Is NUnit a library?

NUnit is a unit-testing library for all . NET languages. It was inspired by Java's JUnit. Other unit-testing libraries include XUnit and MSTest.


3 Answers

I can successfully run tests with only the following 6 NUnit files present:

  • nunit.core.dll
  • nunit.core.interfaces.dll
  • nunit.framework.dll
  • nunit.util.dll
  • nunit.console-runner.dll
  • nunit-console.exe
like image 189
mookid8000 Avatar answered Oct 18 '22 20:10

mookid8000


After some research, the following files don't appear to be unnecessary because they represent test assemblies for NUnit itself and for FIT:

  • addins/
  • clr.bat
  • failure.jpg
  • fit.dll
  • ignored.jpg
  • loadtest-assembly.dll
  • mock-assembly.dll
  • nonamespace-assembly.dll
  • notestfixtures-assembly.dll
  • nunit.core.dll
  • nunit.core.extensions.dll
  • nunit.core.interfaces.dll
  • nunit.core.tests.dll
  • nunit.exe
  • nunit.exe.config
  • nunit.extensions.tests.dll
  • nunit.fixtures.dll
  • nunit.fixtures.tests.dll
  • nunit.framework.dll
  • nunit.framework.extensions.dll
  • nunit.framework.tests.dll
  • nunit.framework.xml
  • nunit.mocks.dll
  • nunit.mocks.tests.dll
  • nunit.uikit.dll
  • nunit.uikit.tests.dll
  • nunit.util.dll
  • nunit.util.tests.dll
  • nunit-console.exe
  • nunit-console.exe.config
  • nunit-console.tests.dll
  • nunit-console-runner.dll
  • nunit-console-x86.exe
  • nunit-console-x86.exe.config
  • NUnitFitTests.html
  • nunit-gui.tests.dll
  • nunit-gui-runner.dll
  • NUnitTests.config
  • NUnitTests.nunit
  • nunit-x86.exe
  • nunit-x86.exe.config
  • runFile.exe
  • runFile.exe.config
  • success.jpg
  • test-assembly.dll
  • test-utilities.dll
  • timing-tests.dll
like image 37
Atif Aziz Avatar answered Oct 18 '22 20:10

Atif Aziz


For 2.6, in addition to Mooki's list, I had to add:

  • nunit-agent.exe
like image 26
SwampyFox Avatar answered Oct 18 '22 20:10

SwampyFox