summaryrefslogtreecommitdiff
path: root/cli/tests/integration/coverage_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-08-11 10:20:47 -0400
committerGitHub <noreply@github.com>2021-08-11 10:20:47 -0400
commit15a763152f9d392cb80692262f8de5ef8ae15495 (patch)
treefcd1a59777f95920bf3502519983d6cc0d882a9a /cli/tests/integration/coverage_tests.rs
parenta0285e2eb88f6254f6494b0ecd1878db3a3b2a58 (diff)
chore: move test files to testdata directory (#11601)
Diffstat (limited to 'cli/tests/integration/coverage_tests.rs')
-rw-r--r--cli/tests/integration/coverage_tests.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/cli/tests/integration/coverage_tests.rs b/cli/tests/integration/coverage_tests.rs
index dce3fb38c..4580b5cec 100644
--- a/cli/tests/integration/coverage_tests.rs
+++ b/cli/tests/integration/coverage_tests.rs
@@ -9,12 +9,12 @@ fn branch() {
let tempdir = TempDir::new().expect("tempdir fail");
let tempdir = tempdir.path().join("cov");
let status = util::deno_cmd()
- .current_dir(util::root_path())
+ .current_dir(util::testdata_path())
.arg("test")
.arg("--quiet")
.arg("--unstable")
.arg(format!("--coverage={}", tempdir.to_str().unwrap()))
- .arg("cli/tests/coverage/branch_test.ts")
+ .arg("coverage/branch_test.ts")
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::inherit())
.status()
@@ -23,7 +23,7 @@ fn branch() {
assert!(status.success());
let output = util::deno_cmd()
- .current_dir(util::root_path())
+ .current_dir(util::testdata_path())
.arg("coverage")
.arg("--quiet")
.arg("--unstable")
@@ -38,7 +38,7 @@ fn branch() {
.to_string();
let expected = fs::read_to_string(
- util::root_path().join("cli/tests/coverage/expected_branch.out"),
+ util::testdata_path().join("coverage/expected_branch.out"),
)
.unwrap();
@@ -51,7 +51,7 @@ fn branch() {
assert!(output.status.success());
let output = util::deno_cmd()
- .current_dir(util::root_path())
+ .current_dir(util::testdata_path())
.arg("coverage")
.arg("--quiet")
.arg("--unstable")
@@ -67,7 +67,7 @@ fn branch() {
.to_string();
let expected = fs::read_to_string(
- util::root_path().join("cli/tests/coverage/expected_branch.lcov"),
+ util::testdata_path().join("coverage/expected_branch.lcov"),
)
.unwrap();
@@ -84,12 +84,12 @@ fn branch() {
fn complex() {
let tempdir = TempDir::new().expect("tempdir fail");
let status = util::deno_cmd()
- .current_dir(util::root_path())
+ .current_dir(util::testdata_path())
.arg("test")
.arg("--quiet")
.arg("--unstable")
.arg(format!("--coverage={}", tempdir.path().to_str().unwrap()))
- .arg("cli/tests/coverage/complex_test.ts")
+ .arg("coverage/complex_test.ts")
.stdout(std::process::Stdio::piped())
.stderr(std::process::Stdio::inherit())
.status()
@@ -98,7 +98,7 @@ fn complex() {
assert!(status.success());
let output = util::deno_cmd()
- .current_dir(util::root_path())
+ .current_dir(util::testdata_path())
.arg("coverage")
.arg("--quiet")
.arg("--unstable")
@@ -113,7 +113,7 @@ fn complex() {
.to_string();
let expected = fs::read_to_string(
- util::root_path().join("cli/tests/coverage/expected_complex.out"),
+ util::testdata_path().join("coverage/expected_complex.out"),
)
.unwrap();
@@ -126,7 +126,7 @@ fn complex() {
assert!(output.status.success());
let output = util::deno_cmd()
- .current_dir(util::root_path())
+ .current_dir(util::testdata_path())
.arg("coverage")
.arg("--quiet")
.arg("--unstable")
@@ -142,7 +142,7 @@ fn complex() {
.to_string();
let expected = fs::read_to_string(
- util::root_path().join("cli/tests/coverage/expected_complex.lcov"),
+ util::testdata_path().join("coverage/expected_complex.lcov"),
)
.unwrap();