Warning, /sdk/doxyqml/tests/functional/README.md is written in an unsupported language. File is not indexed.

0001 # Doxyqml functional tests
0002 
0003 ## Running tests
0004 
0005 To run functional tests, run `tests.py` or `tests.py test_id`, where `test_id` is the name of a
0006 directory in `tests/functional`.
0007 
0008 ## Adding tests
0009 
0010 Functional tests are defined by creating a new test directory in
0011 `tests/functional`.
0012 
0013 Assuming you want to create a new test called "foo", you would have to create
0014 the following:
0015 
0016 ```
0017 foo/
0018   input/
0019     MyFile.qml
0020   expected/
0021     MyFile.qml.cpp
0022   args.json
0023 ```
0024 
0025 `input/MyFile.qml` contains the QML code to feed to Doxyqml.
0026 
0027 `expected/MyFile.qml.cpp` contains the expected generated C++ code.
0028 
0029 `args.json` is an optional file. If it exists it must contain an array of
0030 command line arguments to pass to Doxyqml.
0031 
0032 ### Generating the expected code
0033 
0034 `tests.py` can generate `expected/MyFile.qml.cpp` for you by running it
0035 with the `-u` option:
0036 
0037 ```
0038 ./tests.py -u foo
0039 ```