Buat file konfigurasi - FreeRTOS

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

Buat file konfigurasi

Test suite Anda harus berisi file konfigurasi wajib berikut:

File yang diperlukan

suite.json

Berisi informasi tentang rangkaian pengujian. Lihat Konfigurasikan suite.json.

group.json

Berisi informasi tentang grup uji. Anda harus membuat file group.json untuk setiap grup uji di rangkaian tes Anda. Lihat Konfigurasikan group.json.

test.json

Berisi informasi tentang grup uji. Anda harus membuat file test.json untuk setiap grup uji di rangkaian tes Anda. Lihat Konfigurasikan test.json.

  1. Di folder MyTestSuite_1.0.0/suite, buat file suite.json dengan struktur berikut:

    { "id": "MyTestSuite_1.0.0", "title": "My Test Suite", "details": "This is my test suite.", "userDataRequired": false }
  2. Di folder MyTestSuite_1.0.0/myTestGroup, buat file group.json dengan struktur berikut:

    { "id": "MyTestGroup", "title": "My Test Group", "details": "This is my test group.", "optional": false }
  3. Di folder MyTestSuite_1.0.0/myTestGroup/myTestCase, buat file test.json dengan struktur berikut:

    { "id": "MyTestCase", "title": "My Test Case", "details": "This is my test case.", "execution": { "timeout": 300000, "linux": { "cmd": "python3", "args": [ "myTestCase.py" ] }, "mac": { "cmd": "python3", "args": [ "myTestCase.py" ] }, "win": { "cmd": "python3", "args": [ "myTestCase.py" ] } } }

Pohon direktori untuk folder MyTestSuite_1.0.0 Anda sekarang akan terlihat seperti berikut ini:

MyTestSuite_1.0.0 └── suite ├── suite.json └── myTestGroup ├── group.json └── myTestCase └── test.json