aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/integration.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2022-06-21 16:59:02 +0000
committerGitHub2022-06-21 16:59:02 +0000
commit19dccade7c44619bfa414a711fe72a612e4ca358 (patch)
treed0a502bc095c1619cfb94236782f42d595af0197 /helix-term/tests/integration.rs
parenta17626a822b36d4de3146c2d410f976e19dd189c (diff)
parent458b89e21dcf76bbf9ca6ba237bd334f4922722d (diff)
Merge pull request #2359 from dead10ck/test-harness
Integration testing harness
Diffstat (limited to 'helix-term/tests/integration.rs')
-rw-r--r--helix-term/tests/integration.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/helix-term/tests/integration.rs b/helix-term/tests/integration.rs
new file mode 100644
index 00000000..11bc4e4c
--- /dev/null
+++ b/helix-term/tests/integration.rs
@@ -0,0 +1,25 @@
+#[cfg(feature = "integration")]
+mod test {
+ mod helpers;
+
+ use std::path::PathBuf;
+
+ use helix_core::{syntax::AutoPairConfig, Position, Selection};
+ use helix_term::{args::Args, config::Config};
+
+ use indoc::indoc;
+
+ use self::helpers::*;
+
+ #[tokio::test]
+ async fn hello_world() -> anyhow::Result<()> {
+ test(("#[\n|]#", "ihello world<esc>", "hello world#[|\n]#")).await?;
+ Ok(())
+ }
+
+ mod auto_indent;
+ mod auto_pairs;
+ mod commands;
+ mod movement;
+ mod write;
+}