diff options
author | Satya Rohith <me@satyarohith.com> | 2021-09-15 16:04:17 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-15 16:04:17 +0530 |
commit | badc87e657f61c522fcf149f23f9a0204c35714f (patch) | |
tree | 8e9cd42325ebf8511c3e09f35a647625eed8cdc9 | |
parent | f92cc66f0dbf8e9753f2e98d4469190f3b561eb0 (diff) |
chore(lsp): use pretty_assertions in e2e tests (#12083)
-rw-r--r-- | Cargo.lock | 49 | ||||
-rw-r--r-- | cli/Cargo.toml | 1 | ||||
-rw-r--r-- | cli/tests/integration/lsp_tests.rs | 1 |
3 files changed, 50 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock index cea061aa7..eab8b2219 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -75,6 +75,15 @@ dependencies = [ ] [[package]] +name = "ansi_term" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" +dependencies = [ + "winapi 0.3.9", +] + +[[package]] name = "anyhow" version = "1.0.43" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -341,7 +350,7 @@ version = "2.33.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" dependencies = [ - "ansi_term", + "ansi_term 0.11.0", "atty", "bitflags", "strsim 0.8.0", @@ -476,6 +485,16 @@ dependencies = [ ] [[package]] +name = "ctor" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e98e2ad1a782e33928b96fc3948e7c355e5af34ba4de7670fe8bac2a3b2006d" +dependencies = [ + "quote 1.0.9", + "syn 1.0.65", +] + +[[package]] name = "d3d12" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -603,6 +622,7 @@ dependencies = [ "os_pipe", "percent-encoding", "pin-project", + "pretty_assertions", "rand 0.8.4", "regex", "ring", @@ -1006,6 +1026,12 @@ dependencies = [ ] [[package]] +name = "diff" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499" + +[[package]] name = "digest" version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -2346,6 +2372,15 @@ dependencies = [ ] [[package]] +name = "output_vt100" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53cdc5b785b7a58c5aad8216b3dfa114df64b0b06ae6e1501cef91df2fbdf8f9" +dependencies = [ + "winapi 0.3.9", +] + +[[package]] name = "owning_ref" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -2542,6 +2577,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] +name = "pretty_assertions" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cab0e7c02cf376875e9335e0ba1da535775beb5450d21e1dffca068818ed98b" +dependencies = [ + "ansi_term 0.12.1", + "ctor", + "diff", + "output_vt100", +] + +[[package]] name = "proc-macro-error" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 7a3e4d0b5..42e7cd603 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -103,6 +103,7 @@ winapi = { version = "0.3.9", features = ["knownfolders", "mswsock", "objbase", chrono = "0.4.19" flaky_test = "0.1.0" os_pipe = "0.9.2" +pretty_assertions = "0.7.2" test_util = { path = "../test_util" } tower-test = "0.4.0" trust-dns-client = "0.20.3" diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index 5034b6ed6..0b06beed4 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -7,6 +7,7 @@ use deno_core::serde_json::json; use deno_core::serde_json::Value; use deno_core::url::Url; use lspower::lsp; +use pretty_assertions::assert_eq; use std::fs; use tempfile::TempDir; use test_util::deno_exe_path; |