summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs45
1 files changed, 14 insertions, 31 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index cb1bb27a3..c81152ec6 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -7,6 +7,20 @@ use std::process::Command;
use tempfile::TempDir;
use test_util as util;
+macro_rules! itest(
+ ($name:ident {$( $key:ident: $value:expr,)*}) => {
+ #[test]
+ fn $name() {
+ (util::CheckOutputIntegrationTest {
+ $(
+ $key: $value,
+ )*
+ .. Default::default()
+ }).run()
+ }
+ }
+);
+
#[test]
fn std_tests() {
let dir = TempDir::new().expect("tempdir fail");
@@ -2066,37 +2080,6 @@ fn deno_test_no_color() {
assert!(out.contains("test result: FAILED. 1 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out"));
}
-macro_rules! itest(
- ($name:ident {$( $key:ident: $value:expr,)*}) => {
- #[test]
- fn $name() {
- (util::CheckOutputIntegrationTest {
- $(
- $key: $value,
- )*
- .. Default::default()
- }).run()
- }
- }
-);
-
-// Unfortunately #[ignore] doesn't work with itest!
-#[allow(unused)]
-macro_rules! itest_ignore(
- ($name:ident {$( $key:ident: $value:expr,)*}) => {
- #[ignore]
- #[test]
- fn $name() {
- (util::CheckOutputIntegrationTest {
- $(
- $key: $value,
- )*
- .. Default::default()
- }).run()
- }
- }
-);
-
itest!(_001_hello {
args: "run --reload 001_hello.js",
output: "001_hello.js.out",