Testing uncommitted changes to a package

68 views
Skip to first unread message

Chandrakant G

unread,
Oct 21, 2016, 11:15:35 AM10/21/16
to julia-users
Hi guys,
I am getting my feet wet with Julia and its pretty nice so far.
I am testing an external Julia package (not something I wrote). I have already cloned it and made some changes.
I have started the julia repl inside the directory where i cloned the package repo.

Here's my workflow.

# Remove existing copy
Pkg.rm(extpkg)

# Add the new copy with my changes
Pkg.clone(pwd())

# Run tests
Pkg.test(mypkg)

My question is: My changes dont get picked up by clone unless I commit them. Is there a way to test uncommitted changes?

Thanks
Chandrakant

Yichao Yu

unread,
Oct 21, 2016, 11:37:23 AM10/21/16
to Julia Users
Add $PWD/src to LOAD_PATH instead. This way you can also make sure you are not using Pkg incorrectly in your package.

Michele Zaffalon

unread,
Oct 21, 2016, 11:49:54 AM10/21/16
to julia...@googlegroups.com
And that command would be push!(LOAD_PATH, $PWD/src)

Steven G. Johnson

unread,
Oct 21, 2016, 6:40:07 PM10/21/16
to julia-users
Just include your runtests.jl script.
Reply all
Reply to author
Forward
0 new messages