Makefile.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [config]
  2. default_to_workspace = false
  3. min_version = "0.32.4"
  4. [env]
  5. CARGO_MAKE_CLIPPY_ARGS = "-- --deny=warnings"
  6. CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
  7. [config.modify_core_tasks]
  8. namespace = "core"
  9. private = true
  10. [tasks.tests]
  11. category = "Testing"
  12. dependencies = ["tests-setup"]
  13. description = "Run all tests"
  14. env = {CARGO_MAKE_WORKSPACE_SKIP_MEMBERS = ["**/examples/*", "**/packages/changelog"]}
  15. run_task = {name = ["test-flow"], fork = true}
  16. [tasks.tests-setup]
  17. private = true
  18. script = [
  19. """
  20. test_flags = array --headless --firefox
  21. dioxus_test_features = set wasm_test
  22. dioxus_test_flags = array_join ${test_flags} " "
  23. echo "running tests with flags: ${dioxus_test_flags} and features: ${dioxus_test_features}"
  24. set_env DIOXUS_TEST_FLAGS ${dioxus_test_flags}
  25. set_env DIOXUS_TEST_FEATURES ${dioxus_test_features}
  26. """,
  27. ]
  28. script_runner = "@duckscript"
  29. [tasks.test-flow]
  30. dependencies = ["test"]
  31. private = true
  32. workspace = true
  33. [tasks.test]
  34. args = ["test", "--all-targets", "--workspace", "--exclude", "dioxus-mobile"]
  35. command = "cargo"
  36. private = true