Dependency only for testing

question

#1

If a packages is only needed for testing (eg loaded by runtests.jl), but not for the package functionality per se, should I include it in REQUIRE?


#2

There’s test/REQUIRE


#3

To be fair, I don’t think test/REQUIRE is in the documentation page here:

http://docs.julialang.org/en/release-0.5/manual/packages/

(unless I just didn’t see it). I only knew to do it because… I don’t really know. It may be good to mention it.


#4

Want to open a PR? I agree that this would be useful for many people.


#5

Sure, if no one posts a link to the PR I’ll open one when I get to it. There are a few other PRs I got to make first.


#6

Started the PR:

Further discussion should continue there. Thanks @Tamas_Papp for mentioning this!


#7

@ChrisRackauckas: nice of you to submit a patch. I opened an issue to create an empty test/REQUIRE file in PkgDev.generate.