carols10cents / cargo-open

A third-party cargo extension to allow you to open a dependent crate in your $EDITOR
Apache License 2.0
22 stars 5 forks source link

Add tests for different kinds of crate installations #4

Open carols10cents opened 8 years ago

carols10cents commented 8 years ago

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:

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.