Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Testing framework in U++.
Testing framework in U++. [message #32570] Wed, 25 May 2011 11:09 Go to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Hello All,

In a little practice of developing in U++ I miss a automating test framework when creating a release.
A good framework example is:
http://code.google.com/p/googletest/

Ok, it can be done customized, but want to have some common solution.

Maybe already exists in U++.

Any hints are welcome!
Re: Testing framework in U++. [message #32572 is a reply to message #32570] Wed, 25 May 2011 11:44 Go to previous messageGo to next message
chickenk is currently offline  chickenk
Messages: 169
Registered: May 2007
Location: Grenoble, France
Experienced Member
I'm not against GoogleTest at all, but for reference, UnitTest++ has been integrated in bazaar already:

http://www.ultimatepp.org/srcdoc$UnitTest++$UnitTestpp$en-us .html

Lionel
Re: Testing framework in U++. [message #32585 is a reply to message #32572] Thu, 26 May 2011 10:03 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

chickenk wrote on Wed, 25 May 2011 12:44

I'm not against GoogleTest at all, but for reference, UnitTest++ has been integrated in bazaar already:

http://www.ultimatepp.org/srcdoc$UnitTest++$UnitTestpp$en-us .html

Lionel


I tried the package "UnitTestTest" from bazaar and get the error:
Quote:


Exception: C0000005 at 00000000
EXCEPTION_ACCESS_VIOLATION
reading at 00000000


At UnitTest++/Test.cpp line 39 in the method: void Test::Run(TestResults& testResults) const

OS: windows xp sp3, builded with MSC9

[Updated on: Thu, 26 May 2011 10:06]

Report message to a moderator

Re: Testing framework in U++. [message #32591 is a reply to message #32570] Thu, 26 May 2011 11:59 Go to previous messageGo to next message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
That's too deep level for meaningful problem report, you have to go level up to see what test exactly did crash the program.

Although I think I know which one was crashing it.

See UnitTestTest/TestTest.cpp:64 "TEST (CrashingTestsAreReportedAsFailures)"

Comment the whole test out, and try again, it should finish correctly with something like:
Success: 165 tests passed.
Test time: 0.24 seconds.

I'm not sure how to fix the compiler settings/upp hooks to catch crashes as exceptions, it's a known problem I documented in UnitTest++/README (see at end of file known issues "*B*").

As my apps don't crash very often, I don't care this feature does not work for me, but if anyone can contribute fix (how to turn crashing exceptions into c++ exceptions which will be catch by UnitTest++), I will be very glad for such fix.

In the meantime, comment out the crash test, and don't crash in your app too. Wink

[Updated on: Thu, 26 May 2011 12:00]

Report message to a moderator

Re: Testing framework in U++. [message #32770 is a reply to message #32570] Tue, 07 June 2011 11:32 Go to previous message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
tojocky: did it work for you?
I'm sort of curious, because so far as I know I'm the only one using the UnitTest++...
Previous Topic: Proposed change to U++ to allow owning children.
Next Topic: U++ video control to come soon
Goto Forum:
  


Current Time: Thu Mar 28 14:58:03 CET 2024

Total time taken to generate the page: 0.01149 seconds