From b2e83f81e10089a0e81ce33c4beb51aefc29a62e Mon Sep 17 00:00:00 2001 From: Skyler Hawthorne Date: Sat, 4 Feb 2023 16:20:23 -0500 Subject: enable rendering in integration tests (#5819) This will allow testing more of the code base, as well as enable UI- specific testing. Debug mode builds are prohibitively slow for the tests, mostly because of the concurrency write tests. So there is now a profile for integration tests that sets the optimization level to 2 for a few helix crates, and lowers the number of rounds of concurrent writes to 1000.--- helix-term/tests/test/write.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-term/tests') diff --git a/helix-term/tests/test/write.rs b/helix-term/tests/test/write.rs index d0128edc..bbf14fc2 100644 --- a/helix-term/tests/test/write.rs +++ b/helix-term/tests/test/write.rs @@ -70,7 +70,7 @@ async fn test_write_quit() -> anyhow::Result<()> { async fn test_write_concurrent() -> anyhow::Result<()> { let mut file = tempfile::NamedTempFile::new()?; let mut command = String::new(); - const RANGE: RangeInclusive = 1..=5000; + const RANGE: RangeInclusive = 1..=1000; let mut app = helpers::AppBuilder::new() .with_file(file.path(), None) .build()?; -- cgit v1.2.3-70-g09d2