Skip to content

Commit 298041a

Browse files
committed
Only run skeptic in test mode
1 parent d2a4fce commit 298041a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

graphql_client/build.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
extern crate skeptic;
22

33
fn main() {
4-
// Generates doc tests for the readme.
5-
skeptic::generate_doc_tests(&["../README.md"]);
4+
#[cfg(tests)]
5+
{
6+
// Generates doc tests for the readme.
7+
skeptic::generate_doc_tests(&["../README.md"]);
8+
}
69
}

0 commit comments

Comments
 (0)