Review Request 115936: Split ki18n ktranscript tests into one using the plugin and one instantiating/destroying the class directly

Chusslove Illich caslav.ilic at gmx.net
Sat Feb 22 13:25:51 UTC 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/115936/#review50521
-----------------------------------------------------------


In fact, in real use the plugin is never unloaded. So I think
ktranscriptplugintest from the patch should become ktranscripttest, and
ktranscripttest from the patch should become something like
ktranscriptcleantest. Then I also see no reason to double the tests,
ktranscriptcleantest should have zero tests at the moment until we come up
with a test that needs that.


- Chusslove Illich


On Feb. 21, 2014, 5:58 p.m., Kevin Krammer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/115936/
> -----------------------------------------------------------
> 
> (Updated Feb. 21, 2014, 5:58 p.m.)
> 
> 
> Review request for KDE Frameworks and Chusslove Illich.
> 
> 
> Repository: ki18n
> 
> 
> Description
> -------
> 
> Separate ktranscript plugin test into its own autotest
>     
> The plugin based test of KTranscript performs all tests with a single
> instance of KTranscriptImp because the plugin uses Q_GLOBAL_STATIC
> to create and access that instance.
>     
> The non-plugin test creates a new instance for every test.
>     
> Currently all scripting tests are runnable in both situations, but the
> non-plugin test allows for tests that need a "clean slate".
> 
> 
> Diffs
> -----
> 
>   autotests/CMakeLists.txt eb73d21 
>   autotests/ktranscriptplugintest.h PRE-CREATION 
>   autotests/ktranscriptplugintest.cpp PRE-CREATION 
>   autotests/ktranscripttest.h 53f3ce0 
>   autotests/ktranscripttest.cpp 78aecb4 
>   src/ktranscript.cpp c922e91 
>   src/ktranscript_p.h f1cc132 
> 
> Diff: https://git.reviewboard.kde.org/r/115936/diff/
> 
> 
> Testing
> -------
> 
> All three tests run without failure
> 
> 
> Thanks,
> 
> Kevin Krammer
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140222/ff4ab03e/attachment.html>


More information about the Kde-frameworks-devel mailing list