add test script

This commit is contained in:
appflowy
2021-09-04 09:00:15 +08:00
parent d27e2b9475
commit a6346dffae
20 changed files with 86 additions and 68 deletions

View File

@ -0,0 +1,31 @@
[tasks.test_local]
category = "Build"
dependencies = ["rm_cache"]
description = "Build desktop targets."
script = '''
cd rust-lib
cargo test --features "flowy-workspace/mock_server","flowy-user/mock_server"
'''
[tasks.test_remote]
dependencies = ["rm_cache", "run_server"]
[tasks.run_test_remote_command]
script = """
cd rust-lib
cargo test
"""
[tasks.run_server]
script = """
cd backend
cargo run
"""
[tasks.rm_cache]
script = """
rm -rf rust-lib/flowy-test/temp
"""