make json tests optional

This commit is contained in:
debris
2016-01-31 20:14:27 +01:00
parent bd7ef539b6
commit 1a69b3861d
3 changed files with 6 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ macro_rules! declare_test {
#[ignore]
#[test]
#[allow(non_snake_case)]
#[cfg(feature="json-tests")]
fn $id() {
test!($name);
}
@@ -20,6 +21,7 @@ macro_rules! declare_test {
#[cfg(feature = "test-heavy")]
#[test]
#[allow(non_snake_case)]
#[cfg(feature="json-tests")]
fn $id() {
test!($name);
}
@@ -27,6 +29,7 @@ macro_rules! declare_test {
($id: ident, $name: expr) => {
#[test]
#[allow(non_snake_case)]
#[cfg(feature="json-tests")]
fn $id() {
test!($name);
}