mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 12:01:38 +00:00
Add foundations for 'rojo serve' tests
This commit is contained in:
parent
6747d97d60
commit
f1729163cf
7 changed files with 65 additions and 10 deletions
|
|
@ -11,6 +11,7 @@ macro_rules! gen_build_tests {
|
|||
paste::item! {
|
||||
#[test]
|
||||
fn [<build_ $test_name>]() {
|
||||
let _ = env_logger::try_init();
|
||||
run_build_test(stringify!($test_name));
|
||||
}
|
||||
}
|
||||
|
|
@ -54,9 +55,9 @@ fn run_build_test(test_name: &str) {
|
|||
let build_test_path = get_build_tests_path();
|
||||
let working_dir = get_working_dir_path();
|
||||
|
||||
let output_dir = tempdir().expect("couldn't create temporary directory");
|
||||
|
||||
let input_path = build_test_path.join(test_name);
|
||||
|
||||
let output_dir = tempdir().expect("couldn't create temporary directory");
|
||||
let output_path = output_dir.path().join(format!("{}.rbxmx", test_name));
|
||||
|
||||
let exe_path = get_rojo_path();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue