123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- [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-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.format]
- command = "cargo"
- args = ["fmt", "--all"]
- [tasks.check]
- command = "cargo"
- args = ["check", "--workspace", "--examples", "--tests"]
- [tasks.clippy]
- command = "cargo"
- args = [
- "clippy",
- "--workspace",
- "--examples",
- "--tests",
- "--",
- "-D",
- "warnings",
- ]
- [tasks.tidy]
- category = "Formatting"
- dependencies = ["format", "check", "clippy"]
- description = "Format and Check workspace"
- [tasks.tests]
- category = "Testing"
- dependencies = ["tests-setup"]
- description = "Run all tests"
- env = { CARGO_MAKE_WORKSPACE_SKIP_MEMBERS = ["**/examples/*"] }
- run_task = { name = ["test-flow", "test-with-browser"], fork = true }
- [tasks.build]
- command = "cargo"
- args = ["build"]
- [tasks.test-flow]
- dependencies = ["test", "docs"]
- private = true
- [tasks.test]
- dependencies = ["build"]
- command = "cargo"
- args = [
- "test",
- "--lib",
- "--bins",
- "--tests",
- "--examples",
- "--workspace",
- # These tests run on Ubuntu without a screen. Desktop tests that require a screen fail, so we skip them
- "--exclude",
- "dioxus-desktop",
- "--exclude",
- "dioxus-mobile",
- ]
- private = true
- [tasks.docs]
- dependencies = ["build"]
- command = "cargo"
- args = [
- "test",
- "--doc",
- "--workspace",
- "--all-features",
- ]
- private = true
- [tasks.test-with-browser]
- env = { CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS = [
- "**/packages/router",
- "**/packages/desktop",
- ] }
- private = true
- workspace = true
|