English 中文(简体)
Include NUnit in my Open-Source Project Download? [closed]
原标题:

This question does not appear to be about programming within the scope defined in the help center.

Closed 7 years ago.

I m considering two possibilities:

  1. include NUnit with the source code of an open-source project - to make it very easy for the potential contributors to run automated tests right away. I feel it is important to promote the "tests-first" culture in this project (or at least make it clear to everyone that tests matter).
  2. distribute the source code without it, but then I d have to describe in the readme how to make the tests run and include a link to the NUnit download page.

The question: Is #1 legal? Which of the two options is normally preferred? I d like to hear from those familiar with the license legalese and those familiar with the common practices.

最佳回答

I ll try to answer the question myself.

First of all it s important to separate our open-source product s binary distribution (aimed at users) from its source-code repository (which is for developers/contributors). The question really concerns the latter. I ve looked at two open-source products as examples.

NUnit

  • binary: has a dependency on fit (included with license)
  • source: has dependencies on NAnt (download it yourself) and log4net (included without a license)

Moq

  • binary: no dependencies
  • source includes the following external dependencies:
  • Silverlight testing tools - included without a licence
  • Microsoft .NET framework reference assemblies - no license
  • Castle - license included (Castle project uses the Apache license, and based on my reading of it, that s a requirement)

So, inclusion of third-party development/build/testing tools with the source code (not with production binaries) seems to be a common practice, and the tools can be included with or without a license notice depending on the type of license and its requirements. You can include the license just in case.

问题回答

As far as the legality goes, I m not a lawyer and you should talk to one about it.

Include your unit tests in your open source project. You do not have to redistribute the [n/j]Unit runtime libraries when you publish.

Let me rephrase that. DO NOT redistribute the j/nUnit run times with your project. You can keep the unit tests in your project. The only time you would want to redistribute the unit frameworks is if the version was disappearing and you couldn t use a newer version.

A lot of projects do this with external libraries so anyone who checks it out immediately has all the binaries in case they need additional libraries. I have seen some projects that include a full binary copy of the tools they require, so you have the exact version the app needs, plus another folder that just has the exact dlls or whatever the project needs.





相关问题
Include NUnit in my Open-Source Project Download? [closed]

I m considering two possibilities: include NUnit with the source code of an open-source project - to make it very easy for the potential contributors to run automated tests right away. I feel it is ...

Showing PDF in VC# 2k8 [closed]

I m looking for a solution to display a PDF in C#. I found the AxAcroPDFLib Control, that works very fine and is sufficient. But other people can t start my program, because they get an exception "...

Mapkit routes and google license [closed]

So, this question is not if I can do routing with mapkit. You can t with the API. So I found the clever way of using an annotation to render a route between two points. The route is based on a ...

热门标签