mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 04:51:47 +00:00
Release Prism 0.1
This commit is contained in:
parent
0602044c57
commit
2281c05d78
24 changed files with 1537 additions and 143 deletions
|
|
@ -8,6 +8,7 @@ use std::{
|
|||
use walkdir::WalkDir;
|
||||
|
||||
pub static ROJO_PATH: &str = env!("CARGO_BIN_EXE_rojo");
|
||||
pub static PRISM_PATH: &str = env!("CARGO_BIN_EXE_prism");
|
||||
pub static BUILD_TESTS_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/rojo-test/build-tests");
|
||||
pub static SERVE_TESTS_PATH: &str = concat!(env!("CARGO_MANIFEST_DIR"), "/rojo-test/serve-tests");
|
||||
pub static SYNCBACK_TESTS_PATH: &str =
|
||||
|
|
|
|||
26
tests/tests/cli.rs
Normal file
26
tests/tests/cli.rs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
use std::process::Command;
|
||||
|
||||
use crate::rojo_test::io_util::PRISM_PATH;
|
||||
|
||||
#[test]
|
||||
fn prism_binary_help_is_branded_and_lists_product_commands() {
|
||||
let output = Command::new(PRISM_PATH).arg("--help").output().unwrap();
|
||||
|
||||
assert!(output.status.success());
|
||||
let stdout = String::from_utf8(output.stdout).unwrap();
|
||||
assert!(stdout.contains("Prism developer tooling for Roblox"));
|
||||
for command in ["serve", "exec", "inspect", "plugin"] {
|
||||
assert!(stdout.contains(command), "help did not list {command}");
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn prism_binary_version_is_branded() {
|
||||
let output = Command::new(PRISM_PATH).arg("--version").output().unwrap();
|
||||
|
||||
assert!(output.status.success());
|
||||
assert_eq!(
|
||||
String::from_utf8(output.stdout).unwrap().trim(),
|
||||
format!("Prism {}", env!("CARGO_PKG_VERSION"))
|
||||
);
|
||||
}
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
mod build;
|
||||
mod cli;
|
||||
mod serve;
|
||||
mod syncback;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue