Download it now!
Bug 131407 - move UItest to CppunitTest
Summary: move UItest to CppunitTest
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
Whiteboard: target:7.0.0
Keywords: difficultyMedium, easyHack, skillCpp, topicDebug, topicQA
Depends on:
Reported: 2020-03-18 18:26 UTC by Xisco Faulí
Modified: 2020-05-09 22:33 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Xisco Faulí 2020-03-18 18:26:23 UTC
LibreOffice uses a python framework called UITest to test its UI. see
However, some UI tests has been written for testing other stuff not related to the UI, like simulating user's action on a document ( undo, redo, delete, type, etc )

For this kind of tests, it's desirable to use C++ CppunitTest for two reasons
1. It's faster
2. it runs on all platforms ( UITests only run in gerrit_linux_clang_dbgutil in Jenkins )

The idea of this easyhack is to convert the UI tests not calling any UI dialog to 
CppunitTest. The list of tests that can be converted is here:

Some examples of Writer tests moved to CppunitTest:

Some examples of Calc tests moved to CppunitTest:

of course, you don't need to run 'make' everything you want to test your code. You can use 'make CppunitTest_sw_uiwriter' or 'make CppunitTest_sc_uicalc' or even faster
make CppunitTest_sw_uiwriter CPPUNIT_TEST_NAME="<test_name>". eg: make CppunitTest_sw_uiwriter CPPUNIT_TEST_NAME="testTdf130746::TestBody"
Comment 2 Commit Notification 2020-04-17 12:00:44 UTC
Coming___soON committed a patch related to this issue.
It has been pushed to "master":

tdf#131407: move UItest to CppunitTest

It will be available in 7.0.0.

The patch should be included in the daily builds available at in the next 24-48 hours. More
information about daily builds can be found at:

Affected users are encouraged to test the fix and report feedback.