Csound Csound-dev Csound-tekno Search About

[Cs-dev] Unit testing

Date2012-11-20 03:46
FromAndres Cabrera
Subject[Cs-dev] Unit testing
Hi,

For my work changing the API, I want to do test driven development,
and I've started using the tests folder and Steven's CMakeLists there.
I'm wondering how to tell cmake to run the tests.

Also, I find CUnit very useful and would like to make tests depend on
it. Any objections or suggestions?

Cheers,
Andrés

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-

Date2012-11-20 13:27
FromSteven Yi
SubjectRe: [Cs-dev] Unit testing
Hi Andres,

To run the tests, you can call "make test" or "ctest" in the top-level
of your build directory. I'd be fine with CUnit, though, to be honest,
most of the testing code I've ever done is with JUnit in Java; I don't
have any familiarity with different C unit testing frameworks.  I took
a quick look at the testing and it looked good to me.

One thing, using CUnit means introducing another dependency.  That's
fine, but if we do that we should add a Finder for CUnit and check if
it exists, if so, enable the tests, if not, don't. I'll look at adding
that now.

Thanks!
steven

On Mon, Nov 19, 2012 at 9:46 PM, Andres Cabrera  wrote:
> Hi,
>
> For my work changing the API, I want to do test driven development,
> and I've started using the tests folder and Steven's CMakeLists there.
> I'm wondering how to tell cmake to run the tests.
>
> Also, I find CUnit very useful and would like to make tests depend on
> it. Any objections or suggestions?
>
> Cheers,
> Andrés
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-11-20 13:31
FromSteven Yi
SubjectRe: [Cs-dev] Unit testing
Oh, never mind, you already did that. :D  Nice!



On Tue, Nov 20, 2012 at 7:27 AM, Steven Yi  wrote:
> Hi Andres,
>
> To run the tests, you can call "make test" or "ctest" in the top-level
> of your build directory. I'd be fine with CUnit, though, to be honest,
> most of the testing code I've ever done is with JUnit in Java; I don't
> have any familiarity with different C unit testing frameworks.  I took
> a quick look at the testing and it looked good to me.
>
> One thing, using CUnit means introducing another dependency.  That's
> fine, but if we do that we should add a Finder for CUnit and check if
> it exists, if so, enable the tests, if not, don't. I'll look at adding
> that now.
>
> Thanks!
> steven
>
> On Mon, Nov 19, 2012 at 9:46 PM, Andres Cabrera  wrote:
>> Hi,
>>
>> For my work changing the API, I want to do test driven development,
>> and I've started using the tests folder and Steven's CMakeLists there.
>> I'm wondering how to tell cmake to run the tests.
>>
>> Also, I find CUnit very useful and would like to make tests depend on
>> it. Any objections or suggestions?
>>
>> Cheers,
>> Andrés
>>
>> ------------------------------------------------------------------------------
>> Monitor your physical, virtual and cloud infrastructure from a single
>> web console. Get in-depth insight into apps, servers, databases, vmware,
>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>> Pricing starts from $795 for 25 servers or applications!
>> http://p.sf.net/sfu/zoho_dev2dev_nov
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net