kde-extraapps/kdevelop/file_templates/testing/cpp_qtestlib/class.cpp
2015-07-26 14:23:17 +03:00

47 lines
625 B
C++

{% load kdev_filters %}
{% include "license_header_cpp.txt" %}
#include "{{ output_file_header }}"
#include <QtTest>
QTEST_MAIN({{ name }});
void {{name}}::initTestCase()
{
// Called before the first testfunction is executed
}
void {{name}}::cleanupTestCase()
{
// Called after the last testfunction was executed
}
void {{name}}::init()
{
// Called before each testfunction is executed
}
void {{name}}::cleanup()
{
// Called after every testfunction
}
{% for case in testCases %}
void {{name}}::{{ case }}()
{
}
{% endfor %}
#include "moc_{{ output_file_header|cut:".h"|cut:".hpp" }}.cpp"