Skip to content
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

Shortcut to test a local package #53258

Closed
gitboy16 opened this issue Feb 9, 2024 · 8 comments
Closed

Shortcut to test a local package #53258

gitboy16 opened this issue Feb 9, 2024 · 8 comments
Labels
feature Indicates new feature / enhancement requests packages Package management and loading

Comments

@gitboy16
Copy link
Contributor

gitboy16 commented Feb 9, 2024

Hi,
I think it would be nice to have something like:

julia --test-package=folder

To test a local package (a bit like cargo test in the rust world). Is it something that you would consider?
Thank you

Related discussion:
https://discourse.julialang.org/t/test-a-local-package/109974

@KristofferC
Copy link
Member

I would say a possible plan is when JuliaLang/Pkg.jl#3772 is landed, to make an app for Pkg itself and then this would be something just like pkg test

@inkydragon inkydragon added packages Package management and loading feature Indicates new feature / enhancement requests labels Feb 9, 2024
@gitboy16
Copy link
Contributor Author

gitboy16 commented Feb 9, 2024

Thank you @KristofferC . I hope we will be able to specify the path of the local package/library.

@stevengj
Copy link
Member

Note that you can just do julia folder/test/runtests.jl

@IanButterworth
Copy link
Member

That doesn't set up the test environment

@gitboy16
Copy link
Contributor Author

In the meantime I just added the functionality to my "personal" juliaup version and I can make it work with different version of Julia. If you are interested let me know. I can post the code.

@gitboy16
Copy link
Contributor Author

gitboy16 commented Mar 1, 2024

@KristofferC would you be open to the proposal in my very first comment if I do the PR? Thank you

@gitboy16
Copy link
Contributor Author

Hi, I was wondering if you have any feedback please? Is ok to do a PR? Or are you against it? I really think it would be great to have an option for that. Thank you.

@fredrikekre
Copy link
Member

There will be a Pkg CLI app based on JuliaLang/Pkg.jl#3772. Until then you can for example use https://github.com/fredrikekre/jlpkg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Indicates new feature / enhancement requests packages Package management and loading
Projects
None yet
Development

No branches or pull requests

6 participants