summaryrefslogtreecommitdiff
path: root/tests/integration/mod.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-02-12 17:13:14 -0700
committerGitHub <noreply@github.com>2024-02-12 17:13:14 -0700
commit3d2e52ae7ecdecadad6830f7991fee79185a9ffe (patch)
tree88a9ad7f3a52d4ab56c79170816fa48139e7e36d /tests/integration/mod.rs
parent49d82e609f7da97f793900528e800019d502a2ff (diff)
chore: continue tests/ re-org (#22396)
Split `node_compat_tests` into its own top-level test so its stdout doesn't stomp on the remainder of the tests.
Diffstat (limited to 'tests/integration/mod.rs')
-rw-r--r--tests/integration/mod.rs85
1 files changed, 0 insertions, 85 deletions
diff --git a/tests/integration/mod.rs b/tests/integration/mod.rs
index 19796f245..89a66385e 100644
--- a/tests/integration/mod.rs
+++ b/tests/integration/mod.rs
@@ -1,90 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-#[macro_export]
-macro_rules! itest(
-($name:ident {$( $key:ident: $value:expr,)*}) => {
- #[test]
- fn $name() {
- let test = test_util::CheckOutputIntegrationTest {
- $(
- $key: $value,
- )*
- .. Default::default()
- };
- let output = test.output();
- output.assert_exit_code(test.exit_code);
- if !test.output.is_empty() {
- assert!(test.output_str.is_none());
- output.assert_matches_file(test.output);
- } else {
- output.assert_matches_text(test.output_str.unwrap_or(""));
- }
- }
-}
-);
-
-#[macro_export]
-macro_rules! itest_flaky(
-($name:ident {$( $key:ident: $value:expr,)*}) => {
- #[flaky_test::flaky_test]
- fn $name() {
- let test = test_util::CheckOutputIntegrationTest {
- $(
- $key: $value,
- )*
- .. Default::default()
- };
- let output = test.output();
- output.assert_exit_code(test.exit_code);
- if !test.output.is_empty() {
- assert!(test.output_str.is_none());
- output.assert_matches_file(test.output);
- } else {
- output.assert_matches_text(test.output_str.unwrap_or(""));
- }
- }
-}
-);
-
-#[macro_export]
-macro_rules! context(
-({$( $key:ident: $value:expr,)*}) => {
- test_util::TestContext::create(test_util::TestContextOptions {
- $(
- $key: $value,
- )*
- .. Default::default()
- })
-}
-);
-
-#[macro_export]
-macro_rules! itest_steps(
-($name:ident {$( $key:ident: $value:expr,)*}) => {
- #[test]
- fn $name() {
- (test_util::CheckOutputIntegrationTestSteps {
- $(
- $key: $value,
- )*
- .. Default::default()
- }).run()
- }
-}
-);
-
-#[macro_export]
-macro_rules! command_step(
-({$( $key:ident: $value:expr,)*}) => {
- test_util::CheckOutputIntegrationTestCommandStep {
- $(
- $key: $value,
- )*
- .. Default::default()
- }
-}
-);
-
// These files have `_tests.rs` suffix to make it easier to tell which file is
// the test (ex. `lint_tests.rs`) and which is the implementation (ex. `lint.rs`)
// when both are open, especially for two tabs in VS Code