]> granicus.if.org Git - esp-idf/commitdiff
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)
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


Trivial merge