https://bugs.documentfoundation.org/show_bug.cgi?id=163016

            Bug ID: 163016
           Summary: We need the ability to write Basic Unit Tests for
                    built-in Libraries
           Product: LibreOffice
           Version: 25.2.0.0 alpha0+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Currently, LibreOffice ships with various built-in Basic Libraries, such as
Gimmicks, Tools, ScriptForge etc. However, we are unable to provide unit tests
for these libraries and avoid unexpected breakages (see f.i. bug 162962).

In the case of ScriptForge, we would like to integrate unit tests into
LibreOffice's CI, however we have not been able to do so, because the current
Basic unit tests are unable to access the built-in Basic libraries.

Ideally, it should be possible to create Basic tests in
basic/qa/basic_coverage/ as we currently do to test the language itself. See
for instance of a prototype of what I think should be possible in:

https://gerrit.libreoffice.org/c/core/+/173485

The test above fails because it is unable to access GlobalScope.BasicLibraries.

Alternatively, I have already tried writing Cpp tests as the ones in:

/core/sc/qa/extras/macros-test.cxx

However, only the document's Standard library is loaded at runtime, so testing
ScriptForge with Cpp tests is currently not viable.

In summary, we need a testing environment where built-in Basic libraries are
accessible by Basic and/or Cpp unit tests.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to