[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Question about unittesting
From:       Giorgos Tsiapaliwkas <terietor () gmail ! com>
Date:       2012-04-08 18:45:34
Message-ID: CAODYyLY2Ydii6hfm_Rt6PKV=M5wTHT2bKEwf5Mx=9zpMcixYtA () mail ! gmail ! com
[Download RAW message or body]

Hello,

Why we don't have in KDE a macro like,

if (application_is_in_debug_mode) {
//do some testing
}

Why we need a macro like that?

a. Giorgos added a feature which deletes a folder from dolphin. Without
this  macro in order Giorgos to
test it he needs,
-to create a dir
-remove the dir
-check if the remove was successful(this is the actual test)

but if we had this macro Giorgos would need to implement the last step.

c. we gain more time and it gets easier for contributors to add some
testing code.
A side note here, of course in vital libs only experienced developers
should write the unittests,
but in small applications contributors could also do the job.

Regards

P.S.: this macro could be enabled by adding in the cmake options something
like "enable_unittest"

-- 
Giorgos Tsiapaliwkas (terietor)
KDE Developer

terietor.gr

[Attachment #3 (text/html)]

<div dir="ltr"><span style>Hello,</span><div style><br></div><div style>Why we \
don&#39;t have in KDE a macro like,</div><div style><br></div><div style>if \
(application_is_in_debug_mode) {</div><div style>//do some testing</div> <div \
style>}</div><div style><br></div><div style>Why we need a macro like that?</div><div \
style><div><br></div><div>a. Giorgos added a feature which deletes a folder from \
dolphin. Without this  macro in order Giorgos to</div> <div>test it he \
needs,</div><div>-to create a dir</div><div>-remove the dir</div><div>-check if the \
remove was successful(this is the actual test)</div><div><br></div><div>but if we had \
this macro Giorgos would need to implement the last step.</div> \
<div><br></div><div>c. we gain more time and it gets easier for contributors to add \
some testing code.</div><div>A side note here, of course in vital libs only \
experienced developers should write the unittests,</div><div> but in small \
applications contributors could also do the \
job.</div><div><br></div><div>Regards</div><div><br></div><div>P.S.: this macro could \
be enabled by adding in the cmake options something like \
&quot;enable_unittest&quot;</div> </div><div><br></div>-- <br>Giorgos Tsiapaliwkas \
(terietor)<br>KDE Developer<br><br><a href="http://terietor.gr" \
target="_blank">terietor.gr</a><br> </div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic