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

start implementing REPL test command #33

Merged
merged 1 commit into from
Nov 26, 2017

Conversation

KristofferC
Copy link
Member

Put most of the scaffolding in place for doing pkg> test Pakcage.

What is left (to match Pkg2) is to do resolution and support test only dependencies.

for (pkg, testfile, version_path) in zip(pkgs, testfiles, version_paths)
# TODO: Test only dependencies
info("Testing $(pkg.name) located at $version_path")
# TODO, cd to test folder (need to be careful with getting the same EnvCache
Copy link
Member Author

@KristofferC KristofferC Nov 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pkg2 does a cd to the package test path here but we need to be careful because if we are in a path with its own Project file then this will not be respected when the EnvCache is created in the process we start below.

We could send a path to the process below pointing to the place where the current Project is located.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could send a path to the process below pointing to the place where the current Project is located.

Yes, that sounds like the way to do it – should be an absolute path.

if token[1] == :pkg
if length(token) == 2
pkg = PackageSpec(token[2])
pkg.mode = :manifest
Copy link
Member Author

@KristofferC KristofferC Nov 17, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? So that it is possible to test packages not in the Project.

for (pkg, testfile, version_path) in zip(pkgs, testfiles, version_paths)
# TODO: Test only dependencies
info("Testing $(pkg.name) located at $version_path")
# TODO, cd to test folder (need to be careful with getting the same EnvCache
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could send a path to the process below pointing to the place where the current Project is located.

Yes, that sounds like the way to do it – should be an absolute path.

@KristofferC KristofferC merged commit f1ea56c into JuliaLang:master Nov 26, 2017
@KristofferC KristofferC deleted the kc/test branch November 26, 2017 19:59
@KristofferC KristofferC mentioned this pull request Nov 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants