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",
"fmt": "prettier -w .",
"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 ."
},
"author": "",

View file

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

View file

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

View file

@ -8,7 +8,7 @@ fn main() {
.args(&[
"build",
"--manifest-path",
"tests/Cargo.toml",
"ui-tests/Cargo.toml",
"--bin",
"nilc-wrapper",
])
@ -20,9 +20,9 @@ fn main() {
.then_some(())
.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.program = CommandBuilder::cmd("tests/target/debug/nilc-wrapper");
config.program = CommandBuilder::cmd("ui-tests/target/debug/nilc-wrapper");
config.mode = Mode::Fail {
require_patterns: false,
};