<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - move UItest to CppunitTest"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=131407">131407</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>move UItest to CppunitTest
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>7.0.0.0.alpha0+ Master
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>xiscofauli@libreoffice.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>LibreOffice uses a python framework called UITest to test its UI. see
<a href="https://wiki.documentfoundation.org/Development/UITests">https://wiki.documentfoundation.org/Development/UITests</a>
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:
<a href="https://wiki.documentfoundation.org/UiTestsToCppUnittests">https://wiki.documentfoundation.org/UiTestsToCppUnittests</a>

Some examples of Writer tests moved to CppunitTest:
-
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=ab623953b92d82d615bd2af6a9369915fe6fb7a8">https://cgit.freedesktop.org/libreoffice/core/commit/?id=ab623953b92d82d615bd2af6a9369915fe6fb7a8</a>
-
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=4a33c86a5b44184a3ed34398cd795a9d42ac1a72">https://cgit.freedesktop.org/libreoffice/core/commit/?id=4a33c86a5b44184a3ed34398cd795a9d42ac1a72</a>
-
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=bf16e836dd7094cb5679042bbd49cb8b49c869d2">https://cgit.freedesktop.org/libreoffice/core/commit/?id=bf16e836dd7094cb5679042bbd49cb8b49c869d2</a>

Some examples of Calc tests moved to CppunitTest:
-
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=55a97625c56d4b1bf6948628559f7e63d01d8333">https://cgit.freedesktop.org/libreoffice/core/commit/?id=55a97625c56d4b1bf6948628559f7e63d01d8333</a>
-
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=2af67c35d283abefe6030a5b90b831b0b797dd62">https://cgit.freedesktop.org/libreoffice/core/commit/?id=2af67c35d283abefe6030a5b90b831b0b797dd62</a>
-
<a href="https://cgit.freedesktop.org/libreoffice/core/commit/?id=056ba01ee95db5dfd7df362e72bb418893c4c530">https://cgit.freedesktop.org/libreoffice/core/commit/?id=056ba01ee95db5dfd7df362e72bb418893c4c530</a>

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"</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>