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

]test in testenv? #85

Open
aplavin opened this issue Mar 9, 2024 · 1 comment
Open

]test in testenv? #85

aplavin opened this issue Mar 9, 2024 · 1 comment

Comments

@aplavin
Copy link

aplavin commented Mar 9, 2024

TestEnv makes it convenient during development and debugging to be in the test env and use test dependencies. But after playing around, one often wants to actually run the testsuite!
Currently, ]test in testenv doesn't work (of course) – it tries to test the temporary project. Can this command be redirected to testing the actual package? So that one doesn't have to switch manually

TestEnv.activate()
# do some code testing...

# now want to run the whole testsuite
]activate .  # would be nice if this wasn't needed
]test
@oxinabox
Copy link
Member

oxinabox commented Mar 9, 2024

I can't think of an easy way to do it.
I believe ] test PackageName where PackageName is the name of your package will work.

Possibly if we copy the UUID and name into the generated Project.toml it might work it out on its own, but I am not hopeful

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

No branches or pull requests

2 participants