Open source license for test code [closed]
This question does not appear to be about programming within the scope defined in the help center.
开发者_如何学运维Closed 7 years ago.
Improve this questionI'm creating a project to house an iPhone library for common code for the iPhone... essentially it's a library that'll save people from finding solutions to common problems that amount to copying and pasting snippets of code. The site is located here: http://code.google.com/p/devkit-bb/
I licensed it under Eclipse, because fosters the extension of the library without requiring constraints like LGPL on object files being provided/made available, which would be the case since everything is statically linked.
What I'm wondering is how/what license to apply to the unit tests? Since they essentially demonstrate how to use various interfaces and components. Thus they're designed for potential copy and paste situations, and I don't want people who might end up using this as part of the building blocks of their environment to feel like the license would prohibit that "derivative work", ie. their application or game.
In that scenario, you might want to consider the MIT license.
The WTFPL, if you can get it past your lawyers.
精彩评论