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

Skeptic tests not running in the same working directory as regular tests #69

Open
epage opened this issue Oct 27, 2017 · 3 comments
Open

Comments

@epage
Copy link

epage commented Oct 27, 2017

In assert_cli, we want to test Assert::main_binary but its implemented by calling cargo run. This works for regular tests but can't for skeptic tests

error: could not find Cargo.toml in /tmp/rust-skeptic.eAWTVVXUenGE or any parent directory

@epage
Copy link
Author

epage commented Nov 4, 2017

Which issue is this a dup of? 62?

@budziq
Copy link
Owner

budziq commented Nov 4, 2017

Which issue is this a dup of? 62?
Hi @epage,

Sorry I was writing response to this issue 2 days ago and something distracted me so I've never pushed the comment button sorry 😞

This is a duplicate of #62
It's basically by design, running tests in isolation was a fix for skeptic tests leaving artifacts in the crate root in rust-cookbook.

I might consider providing a configuration switch to use crate PWD again. Would that be enough? I can't give an ETA on that one as my free time is pretty scarce these days but it's certainly on my radar!

@epage
Copy link
Author

epage commented Nov 5, 2017

I understand being busy.

A flag for this would be nice.

From testing a lib perspective, I already need to keep the filesystem clean for normal tests and take the same approach for Skeptic tests. I can see the appeal of automatically running in a different directory though. it removes a major piece of boiler plate from documentation that would exist just for verifying the docs.

@epage epage changed the title Skeptic tests not runnin in the same working directory as regular tests Skeptic tests not running in the same working directory as regular tests Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants