Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I've finished a first working, releasable version of a testing framework. Prior to release, I want to apply a proper license to it. Normally I'd choose something like GPLv3 but here I am pretty unsure. If I put the testing framework under GPLv3, does that mean users won't be able to test their commercial applications without also putting them under the GPL? Would a license like the MIT be a better fit?

I've just had a look at several popular testing frameworks (JUnit, Jasmine) and none of them uses the GPL.

EDIT

Forgot to mention the project is open sourced.

share|improve this question
    
At the end of the first paragraph ("Would a license like the GPL be a better fit?") surely you meant a different license? –  delnan Aug 15 '12 at 13:36
3  
Remember that licenses are about distribution. If they are just using your framework then they aren't distributing it. Compare the differences between the GPL, LGPL & AGPL and how they are used. –  Mark Booth Aug 15 '12 at 14:23
1  
@MarkBooth While that may be correct the fact is most will not like to take the risk with GPL as it all comes down to interpretation of law with the risks of a legal fight involved. Specially if there are competitive products that are non-GPL open source. –  Pratik Aug 16 '12 at 8:36
1  
@Pratik - No, it's pretty clear. If you want it to be clear to everyone with access to the code though, add a "This code is based on GPL licensed code and MUST NOT be distributed outside of the organisation" line prominently at the top of every source file. –  Mark Booth Aug 16 '12 at 9:24
add comment

2 Answers

up vote 4 down vote accepted

Firstly it probably doesn't matter. There are a lot of testing frameworks. Almost every company/project/developer seems to roll their own version of cppunit, so the chance of the license you choose actually having any major effect is small.

Secondly GPL limits how you can distribute a derived work. Unless your testing framework requires some changes to my main codebase (in which case it's a very bad testing framework!) then I should only need to use your code for my unit tests which I'm not going to distribute anyway.

share|improve this answer
    
You don't distribute your unit tests with your open source project? –  Scott Whitlock Aug 15 '12 at 16:59
1  
@Scott Who said his project was an open source one? –  Cromulent Aug 15 '12 at 17:08
add comment

If you don't feel strongly about the politics of the GPL, I recommend avoiding it. Choose something more liberal that (arguably) helps more people. A lot of people and organizations simply won't use GPL and LGPL-based software out of principle (or perhaps out of ignorance).

A liberal license like BSD or MIT will probably let your software be used by more people.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.