mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-14 16:37:14 +00:00
42 lines
1.1 KiB
TOML
42 lines
1.1 KiB
TOML
[config]
|
|
default_to_workspace = false
|
|
min_version = "0.32.4"
|
|
|
|
[env]
|
|
CARGO_MAKE_CLIPPY_ARGS = "-- --deny=warnings"
|
|
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
|
|
|
|
[config.modify_core_tasks]
|
|
namespace = "core"
|
|
private = true
|
|
|
|
[tasks.tests]
|
|
category = "Testing"
|
|
dependencies = ["tests-setup"]
|
|
description = "Run all tests"
|
|
env = {CARGO_MAKE_WORKSPACE_SKIP_MEMBERS = ["**/examples/*", "**/packages/changelog"]}
|
|
run_task = {name = ["test-flow"], fork = true}
|
|
|
|
[tasks.tests-setup]
|
|
private = true
|
|
script = [
|
|
"""
|
|
test_flags = array --headless --firefox
|
|
dioxus_test_features = set wasm_test
|
|
dioxus_test_flags = array_join ${test_flags} " "
|
|
echo "running tests with flags: ${dioxus_test_flags} and features: ${dioxus_test_features}"
|
|
set_env DIOXUS_TEST_FLAGS ${dioxus_test_flags}
|
|
set_env DIOXUS_TEST_FEATURES ${dioxus_test_features}
|
|
""",
|
|
]
|
|
script_runner = "@duckscript"
|
|
|
|
[tasks.test-flow]
|
|
dependencies = ["test"]
|
|
private = true
|
|
workspace = true
|
|
|
|
[tasks.test]
|
|
args = ["test", "--all-targets", "--workspace", "--exclude", "dioxus-mobile"]
|
|
command = "cargo"
|
|
private = true
|