-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #251
- Loading branch information
Showing
9 changed files
with
35 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
use cfg_if::cfg_if; | ||
#![cfg(feature = "integration_test")] | ||
|
||
cfg_if! { | ||
if #[cfg(feature="integration_test")] { | ||
#[macro_use] | ||
mod harness; | ||
#[macro_use] | ||
mod harness; | ||
|
||
mod fixtures; | ||
|
||
use self::fixtures::get_tests; | ||
use rustc_test::test_main; | ||
|
||
fn main() { | ||
let args: Vec<_> = ::std::env::args().collect(); | ||
|
||
test_main(&args, get_tests()); | ||
} | ||
} else { | ||
fn main() { | ||
println!(concat![ | ||
"Integration tests will not run. ", | ||
"To run integration tests either run `./scripts/test.sh` ", | ||
"or pass `--features=integration_test` flag to `cargo test`." | ||
]); | ||
} | ||
} | ||
mod fixtures { | ||
mod token_capturing; | ||
mod selector_matching; | ||
mod element_content_replacement; | ||
} |