]> granicus.if.org Git - esp-idf/commit
Merge branch 'feature/parse_unit_test_cases_from_test_files' into 'master'
authorIvan Grokhotkov <ivan@espressif.com>
Wed, 18 Jan 2017 09:23:04 +0000 (17:23 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 18 Jan 2017 09:23:04 +0000 (17:23 +0800)
commit0b3646f26e9d04026a07dc87451c542a953416c4
treee45f8e424ea89083bcfd927118e9be36ae160842
parent6e2e456d6258e06ecdae6dec052c5c3b45510565
parent0501507d6b405d30afc7465e88f4128e30332ec4
Merge branch 'feature/parse_unit_test_cases_from_test_files' into 'master'

Parse unit test cases from test files

As of now, we need to sync three different places when adding new unit test cases. The plan is to add a python script in tools/unit-test-app. This script would parse unit test cases from the C files with tests and generate the needed YAML files in components/idf_test/unit_test. CI would run this script in build stage to create the files and unit-test stage would use the generated files to run tests.

To get the needed test metadata, we need to add some more tags in the test case functions. For example:

```
TEST_CASE("SYS_LIB_0102 test time functions", "[stdlib][fails][env=UT_T1_APC]")
{
    //...
}
```

Reason for this kind of implementation is that we need the YAML files for generating documents.

See merge request !275