-
-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making test dependencies available at the REPL #1008
Comments
I think the proposal in the last paragraph could also help with #480 by the way; instead of introducing more REPL mode syntax for adding test dependencies, one could just activate |
Making this easy would make me insanely joyous. I tend to just |
See https://github.com/fredrikekre/Sandbox.jl for a mockup of this (and for build dependencies) I put together some time ago. Also related to #624. |
Re: Sandbox.jl, for the Secondarily, what does creating new |
I didn't want to commit the manifest.
If we need to resolve we don't modify the files in the repo. |
#989 was just merged btw, so feel free to alpha-test it! |
@fredrikekre, I'm sure I could read and figure out the implications of #989, but is there a simple summary of what we should do? |
See #1031 😛 Basically, if there is a |
For example:
|
I have to say, the more I see it, the more I like this solution. All we need is the ability to generate multiple mutually compatible manifests (just that, sounds easy enough, right?). |
So basically what you're saying is we should add a |
Thanks for the explanation. I also think this will be much nicer than the I do worry a little that |
Also generalizes nicely to a |
Yea, but what did you mean with the
Yea, see above. If there is a
Well, as stated above,
Yea, I prototyped that in https://github.com/fredrikekre/Sandbox.jl as well, and David implemented that in #989 (i.e. a |
Closing as dup of #624 |
My current workflow for quickly iterating on new code and the unit tests for that code together involves
include
ing the.jl
file containing the tests in the REPL so as to benefit from Revise.jl speedups. (The.jl
file has the relevant test code the nicely isolated in its own module and is normally included fromruntests.jl
).Even though the test dependencies are recorded in the
[extras]
section of theProject.toml
and in that sense 'known', the only way to support the above workflow seems to be to recreate the test dependency setup in a separateProject.toml
file and to activate that environment. It would be very nice if it were easier to have the test dependencies available, not just while running thetest
task.I was wondering, following the response to #727 for build dependencies and the currently preferred way of building documentation, would it make sense to switch to a setup where there's a separate
Project.toml
and optionallyManifest.toml
in thetest
directory? That way, the test dependency setup is trivially available as just another environment.The text was updated successfully, but these errors were encountered: