GSOC More and Better Tests: Weekly Update
Adam Seskunas
adamseskunas at gmail.com
Tue Jun 18 16:44:25 UTC 2024
Hello everyone,
This past week I continued working on the pesky checkdispatchapi.java tests. Xisco has come up with a roll out plan, to get the tests working/resolve the issues in stages. There is another patch set here
https://gerrit.libreoffice.org/c/core/+/168694 <https://gerrit.libreoffice.org/c/core/+/168694>
with most of the tests enabled, and currently building with no problems. The next stage still needs to be completed, and that will entail getting the test windows to close cleanly, and getting the last three database tests to build without errors.
I also continued to work on porting the checkInterception() test, located in checkdispatchapi.java. By the end of the week, I had gotten stuck translating the Interceptor.java helper class over to c++. Xisco kindly suggested that since I had already written a few database adjacent tests, that I look into the the dbaccess/qa/complex tests to maybe give one a try, for a change of pace. I found dbaccess/qa/complex/dbaccess/DataSource.java and have ported that over to CppUnit. The patch can be found here
https://gerrit.libreoffice.org/c/core/+/169071 <https://gerrit.libreoffice.org/c/core/+/169071>
There are at least two other tests in dbaccess/qa/complex that I’m interested in porting over to CppUnit. The issue is that they rely on the "Customer Relationship Management” database that is set up in connectivity/qa/connectivity/tools/CRMDatabase.java. The idea I have is to save that database to file, then it will be a simple matter to perform the other tests by just opening the test file, no need to set up the database tables and queries for each test or to translate the setup code to c++. If anyone has any suggestions on how to do this, feel free to chime in, I will be working on it this week.
This week I will also be working on porting over some tests from the Missing Unit Test list. The plan is to start with here
https://bugs.documentfoundation.org/show_bug.cgi?id=85769 <https://bugs.documentfoundation.org/show_bug.cgi?id=85769>
and if time allows, write this test as well
https://bugs.documentfoundation.org/show_bug.cgi?id=103063 <https://bugs.documentfoundation.org/show_bug.cgi?id=103063>
That’s it for now, hope everyone has a good week.
Cheers,
Adam Seskunas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20240618/84b403a1/attachment.htm>
More information about the LibreOffice
mailing list