Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
test: Move quickcheck to dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed May 13, 2016
1 parent 86edb84 commit 48dd86c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ script:
travis-cargo bench &&
travis-cargo --only stable doc
- cargo test --release
- cargo test --features=quickcheck
- cd quickcheck && cargo test
after_success:
- travis-cargo --only stable doc-upload
Expand Down
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ include = [

[dependencies]
clippy = {version = "*", optional = true}
quickcheck = {version = "0.2", optional = true}

[dev-dependencies]
quickcheck = "0.2"

[features]
default = []
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#![cfg_attr(feature="clippy", feature(plugin))]
#![cfg_attr(feature="clippy", plugin(clippy))]

#[cfg(all(test, feature = "quickcheck"))]
#[cfg(test)]
extern crate quickcheck;

use std::fmt;
Expand Down Expand Up @@ -107,7 +107,7 @@ fn test_compress_decompress_lorem_round() {
};
}

#[cfg(all(test, feature = "quickcheck"))]
#[cfg(test)]
mod quickcheck_test {
use super::*;
use quickcheck::{quickcheck, TestResult};
Expand Down

0 comments on commit 48dd86c

Please sign in to comment.