OSS 项目的最小 NUnit 二进制文件 [英] Minimum NUnit binaries for an OSS project

查看:44
本文介绍了OSS 项目的最小 NUnit 二进制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

附带基于 NUnit 的单元测试的开源项目通常也附带 NUnit 运行程序和随附的二进制文件.对于 NUnit 2.4.8,将其 bin 目录与实际项目逐字分发共 46 个文件和一个空白的 addins 目录.如果只想分发 GUI 和控制台运行程序以及编写测试所需的基本 nunit.framework.dll(并且没有模拟基础架构),那么所需的最少文件集是多少?

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)?

作为参考,NUnit 2.4.8 bin 目录如下所示:

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

  • 插件/
  • clr.bat
  • 失败.jpg
  • fit.dll
  • 忽略.jpg
  • loadtest-assembly.dll
  • 模拟程序集.dll
  • nonamespace-assembly.dll
  • notefixtures-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
  • 成功.jpg
  • test-assembly.dll
  • test-utilities.dll
  • timing-tests.dll

推荐答案

我可以在仅存在以下 6 个 NUnit 文件的情况下成功运行测试:

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

这篇关于OSS 项目的最小 NUnit 二进制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆