-
-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(test): Add
TestManager
struct for uniform test setup
Add `TestManager` to manage setting up Mocks and Trycmd tests. This will make bumping to new Mockito #2223 easier
- Loading branch information
1 parent
67ca9e7
commit 4235619
Showing
45 changed files
with
1,336 additions
and
1,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
use crate::integration::register_test; | ||
use crate::integration::TestManager; | ||
|
||
#[test] | ||
fn command_bash_hook() { | ||
register_test("bash_hook/*.trycmd"); | ||
TestManager::new().register_trycmd_test("bash_hook/*.trycmd"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
use crate::integration::register_test; | ||
use crate::integration::TestManager; | ||
|
||
mod bundle_jvm; | ||
mod upload; | ||
|
||
#[test] | ||
fn command_debug_files_help() { | ||
register_test("debug_files/*.trycmd"); | ||
TestManager::new().register_trycmd_test("debug_files/*.trycmd"); | ||
} | ||
|
||
#[cfg(not(windows))] | ||
#[test] | ||
fn command_debug_files_not_windows() { | ||
register_test("debug_files/not_windows/*.trycmd"); | ||
TestManager::new().register_trycmd_test("debug_files/not_windows/*.trycmd"); | ||
} | ||
|
||
#[cfg(windows)] | ||
#[test] | ||
fn command_debug_files_windows() { | ||
register_test("debug_files/windows/*.trycmd"); | ||
TestManager::new().register_trycmd_test("debug_files/windows/*.trycmd"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.