Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Add tests for different kinds of crate installations #4

Open
carols10cents opened this issue Oct 4, 2015 · 0 comments
Open

Add tests for different kinds of crate installations #4

carols10cents opened this issue Oct 4, 2015 · 0 comments

Comments

@carols10cents
Copy link
Owner

In main.rs, add unit tests for the cargo_dir function that checks that it returns the correct directory for different kinds of crates that have been installed, like:

  • A crate specified with * as its version
  • A crate specified with a particular version
  • A crate installed from github
  • A crate installed from a local path
  • A crate that we have a local override set up for

This may require setting up some infrastructure similar to what cargo does for its tests in order to be able to create temporary directories that contain different kinds of projects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant