Hi,
I'm quite new to UnitTest++ and need to use it in an (probably) unusual
approach:
I create plugins for a 3D-engine which I want to test. These plugins are
controlling certain things in the engine like dis/enabling rain or
position models.
There are callbacks, which get called every frame by the engine, where I
could do my work.
My idea of testing is the following:
- Starting up the engine, loading the plugin automatically if
everything is set up
- First call to the callback: Do something I would like to
test, let's stick to the example and say we're enabling rain
- After the callback has been called, the command gets applied
(the clouds and atmospheric lightning changes, some particle effects for
the rain appear, ..)
- In the second callback I'd ask the engine what the current
weather state is, if it's rain the test succeeds.
Of course the real tests would be a bit more complex, the above would
simply test if the enableRain()-method works...
As you can see in the above example I couldn't create my own executable
which uses the Testrunner. I also have an asynchronous approach, I can't
test the results directly after a method has been called. Of course I
would like to use an existing framework for testing instead of
implementing everything myself.
I've found UnitTest++ via Games from Within, probably I'm not the first
having such an approach and you can give me some advice on that topic.
Best Regards,
Nils
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Rheinmetall Defence Electronics GmbH
Brüggeweg 54 - D-28309 Bremen - Tel +49 421 457-01 - Fax +49 421 457-2900 -
Sitz der Gesellschaft: Bremen - Register: Amtsgericht Bremen, HRB 9659
Commerzbank AG, Bremen (BLZ 290 400 90) 102213600 - www.rheinmetall-defence.com
Aufsichtsratsvorsitzender: Bodo Garbe - Geschäftsführung: Luitjen Ennenga,
Ulrich Sasse, Thorsten Quade
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
unittest-cpp-devel mailing list
unittest-cpp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel