rename tests to ui-tests

This commit is contained in:
nora 2023-08-02 14:32:31 +02:00
parent b68d775671
commit dd93453943
9 changed files with 12 additions and 12 deletions

View file

@ -8,7 +8,7 @@
"build": "tsc", "build": "tsc",
"fmt": "prettier -w .", "fmt": "prettier -w .",
"test": "jest", "test": "jest",
"ui-test": "npm run build && cargo run --manifest-path tests/Cargo.toml --bin tests", "ui-test": "npm run build && cargo run --manifest-path ui-tests/Cargo.toml --bin ui-tests",
"lint": "eslint ." "lint": "eslint ."
}, },
"author": "", "author": "",

View file

@ -906,13 +906,6 @@ dependencies = [
"winapi", "winapi",
] ]
[[package]]
name = "tests"
version = "0.1.0"
dependencies = [
"ui_test",
]
[[package]] [[package]]
name = "textwrap" name = "textwrap"
version = "0.11.0" version = "0.11.0"
@ -994,6 +987,13 @@ dependencies = [
"tracing-core", "tracing-core",
] ]
[[package]]
name = "ui-tests"
version = "0.1.0"
dependencies = [
"ui_test",
]
[[package]] [[package]]
name = "ui_test" name = "ui_test"
version = "0.12.1" version = "0.12.1"

View file

@ -1,5 +1,5 @@
[package] [package]
name = "tests" name = "ui-tests"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

View file

@ -8,7 +8,7 @@ fn main() {
.args(&[ .args(&[
"build", "build",
"--manifest-path", "--manifest-path",
"tests/Cargo.toml", "ui-tests/Cargo.toml",
"--bin", "--bin",
"nilc-wrapper", "nilc-wrapper",
]) ])
@ -20,9 +20,9 @@ fn main() {
.then_some(()) .then_some(())
.unwrap_or_else(|| std::process::exit(1)); .unwrap_or_else(|| std::process::exit(1));
let mut config = Config::rustc("tests/ui"); let mut config = Config::rustc("ui-tests/ui");
config.host = Some("wasm :3".into()); config.host = Some("wasm :3".into());
config.program = CommandBuilder::cmd("tests/target/debug/nilc-wrapper"); config.program = CommandBuilder::cmd("ui-tests/target/debug/nilc-wrapper");
config.mode = Mode::Fail { config.mode = Mode::Fail {
require_patterns: false, require_patterns: false,
}; };