tests.toml 474 B

12345678910111213141516171819202122232425262728293031
  1. [tasks.test_local]
  2. category = "Build"
  3. dependencies = ["rm_cache"]
  4. description = "Build desktop targets."
  5. script = '''
  6. cd rust-lib
  7. cargo test --features "flowy-workspace/mock_server","flowy-user/mock_server"
  8. '''
  9. [tasks.test_remote]
  10. dependencies = ["rm_cache", "run_server"]
  11. [tasks.run_test_remote_command]
  12. script = """
  13. cd rust-lib
  14. cargo test
  15. """
  16. [tasks.run_server]
  17. script = """
  18. cd backend
  19. cargo run
  20. """
  21. [tasks.rm_cache]
  22. script = """
  23. rm -rf rust-lib/flowy-test/temp
  24. """