[Libreoffice] how to acquire an ScDocument reference "from scratch"

Stephan Bergmann sbergman at redhat.com
Fri Dec 9 05:05:05 PST 2011


On 12/09/2011 12:55 PM, Kevin Hunter wrote:
> At 4:47pm -0500 Thu, 08 Dec 2011, Michael Meeks wrote:
>> On Thu, 2011-12-08 at 13:05 -0500, Kevin Hunter wrote:
>>> More specifically, I wish there were a way to run exactly and only
>>> one test (i.e. a single ::testFunction()).
>>
>> Fine, sounds like a worthy goal. I suggest you hack cppunit to add
>> some magic macro wrappers to stringify the function name, and allow
>> some run-time parameter that will filter the tests immediately on
>> entry down to the one you want.
>
> Oh! I didn't realize cppunit was open for hacking from our end. Let's

Not really.  Keep in mind that LO's configure has --with-system-cppunit, 
which people do make use of.  The existing patches fix bugs or warnings, 
and should have been upstreamed if there were a living upstream.  They 
do not introduce features.

That said, AFAIU, xUnit in general and CppUnit in particular does 
support the notion of finer-grained test suites, allowing one to execute 
only a subset of a given set of tests.  Never looked into how that 
works, though.

Stephan


More information about the LibreOffice mailing list