test

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Run tests for the Keychat project.
为Keychat项目运行测试。

Arguments

参数

  • $ARGUMENTS
    - Optional: specific test file path or package name
  • $ARGUMENTS
    - 可选:特定测试文件路径或包名

Test Commands

测试命令

Run all tests

运行所有测试

bash
melos run test:all
bash
melos run test:all

Run Flutter tests only

仅运行Flutter测试

bash
melos run test:flutter
bash
melos run test:flutter

Run Dart tests only

仅运行Dart测试

bash
melos run test:dart
bash
melos run test:dart

Run a specific test file

运行特定测试文件

bash
cd packages/app
flutter test $ARGUMENTS
bash
cd packages/app
flutter test $ARGUMENTS

Workflow

工作流

  1. If no arguments provided, run
    melos run test:all
  2. If a file path is provided (ends with
    .dart
    ), run that specific test
  3. Report test results clearly, including any failures
  1. 如果未提供参数,运行
    melos run test:all
  2. 如果提供了文件路径(以
    .dart
    结尾),运行该特定测试
  3. 清晰报告测试结果,包括任何失败情况