summaryrefslogtreecommitdiff
path: root/cli/test_util.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-05-04 10:40:18 -0400
committerGitHub <noreply@github.com>2020-05-04 10:40:18 -0400
commit92c0591fcbf74ee34e7bc0518376d8fdb38feb30 (patch)
tree7b3976a2ad0d06fd8fc8f44045bdd603302ffbdf /cli/test_util.rs
parent1500547afa9c7784967f1915398bc4e1b3a18e08 (diff)
simplify unit tests: compiler_api, workers (#5073)
Diffstat (limited to 'cli/test_util.rs')
-rw-r--r--cli/test_util.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cli/test_util.rs b/cli/test_util.rs
index 4fda808ce..890b2783f 100644
--- a/cli/test_util.rs
+++ b/cli/test_util.rs
@@ -19,6 +19,10 @@ pub fn root_path() -> PathBuf {
PathBuf::from(concat!(env!("CARGO_MANIFEST_DIR"), "/.."))
}
+pub fn tests_path() -> PathBuf {
+ root_path().join("cli").join("tests")
+}
+
pub fn target_dir() -> PathBuf {
let current_exe = std::env::current_exe().unwrap();
let target_dir = current_exe.parent().unwrap().parent().unwrap();