-
Notifications
You must be signed in to change notification settings - Fork 23
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
run
doesnt maintain state between runs
#83
Comments
Yep, that's intended bahaviour - the # Call the full path firectly
run cat foo/bar
# Or, if the cd is absolutely necessary, run it in the main
# test scope, so that it affects the test process, and is not
# run in an isolated subprocess
cd foo
run cat bar |
In my case the second option seems necessary as cd'ing to the directory is part of the test (this is for testing https://github.com/MichaelAquilina/zsh-autoswitch-virtualenv). However, for some reason the cd fails without any good reason. I am guessing this is more to do with what my plugin is doing than zunit so I feel like I need to dig into this more. |
That should work, It's a zsh shortcut:
Its almost equivalent to |
Oh, nice. I hadn't heard of that before. I figured it was a variable assignment |
I'm getting errors when I'm running the tests that the
|
Have you installed virtualenvwrapper?
You will probably need to use sudo to install that (or use a python virtualenv) |
Ah, that would help. Can you tell I'm not a python guy? 😂 |
haha no problem! I was away in Germany the past few days so I havent managed to give this a look since we last spoke. Any luck from your side? I will probably try find some time today to try clean this all up |
Sorry, I haven't got anywhere with this. I've had a couple of attempts, but I've had no luck getting However, looking at the travis output from the master branch, ZUnit doesn't appear to be doing anything that it's not supposed to. Did the |
I need to give the tests for this project a proper look because i noticed quite a few are passing automatically due to the |
Hopefully this isnt another non-issue, but using
run
doesnt seem to maintain it's environment between subsequent calls in the same test.e.g.
the second run will fail because the cd to foo is not maintained
The text was updated successfully, but these errors were encountered: