Configuration

The configuration is a JSON file that can be located anywhere in the project structure which specifies option values.

For example:

{
   "spec_dir_path": "relative/path1",
   "test_dir_path": "relative/path2",
   "testdata_dir_path": "/absolute/path1",
   "matrix_path": "/absolute/path2.csv",
   "spec_format": "RST",
   "disable_allocation": 1
}

Configuration options

The following options are allowed in the configuration of ECAP5-TREQ.

spec_dir_path

Specifies the path to the directory containing sources of the specification where requirements will be imported from.

Type:

string path

Required:

Yes

Note

The search for source files is recursive and will result in importing requirements from source files in all subdirectories.

test_dir_path

Specifies the path to the directory containing sources of the tests where checks will be imported from.

Type:

string path

Required:

Yes

Note

The search for source files is recursive and will result in importing checks from source files in all subdirectories.

testdata_dir_path

Specifies the path to the directory containing testdata files.

Type:

string path

Required:

Yes

Note

The search for testdata files is recursive and will result in importing testdata from testdata files in all subdirectories.

matrix_path

Specifies the path to the traceability matrix file.

Type:

string path

Required:

Yes

spec_format

Specifies the language format of the specification source files.

The following values are supported :
  • RST: reStructuredText / Sphinx

  • TEX: LaTeX

Type:

string spec_format

Required:

Yes

disable_allocation

Disables the requirement allocation feature