diff --git a/file_templates/testing/cpp_qtestlib/class.h b/file_templates/testing/cpp_qtestlib/class.h --- a/file_templates/testing/cpp_qtestlib/class.h +++ b/file_templates/testing/cpp_qtestlib/class.h @@ -28,7 +28,7 @@ {% endif %} {% for case in testCases %} - void {{ case }}(); + void {% if test_prefixMethods %}test{{ case|upper_first }}{% else %}{{ case }}{% endif %}(); {% endfor %} }; diff --git a/file_templates/testing/cpp_qtestlib/class.cpp b/file_templates/testing/cpp_qtestlib/class.cpp --- a/file_templates/testing/cpp_qtestlib/class.cpp +++ b/file_templates/testing/cpp_qtestlib/class.cpp @@ -40,7 +40,7 @@ {% endif %} {% for case in testCases %} -void {{name}}::{{ case }}() +void {{ name }}::{% if test_prefixMethods %}test{{ case|upper_first }}{% else %}{{ case }}{% endif %}() { diff --git a/file_templates/testing/cpp_qtestlib/options.kcfg b/file_templates/testing/cpp_qtestlib/options.kcfg --- a/file_templates/testing/cpp_qtestlib/options.kcfg +++ b/file_templates/testing/cpp_qtestlib/options.kcfg @@ -22,5 +22,9 @@ true + + + true +