DudeAwesome Posted March 5, 2014 Share Posted March 5, 2014 how you write testcases for your functions/classes in lua? Is there a way to do it like in other languages (phpUnit, jUnit) if the codes grows up more and more its harder to find bugs and avoid exceptions. I will try to avoid this in the future. Quote It doesn´t work... why? mhmmm It works... why? Link to comment Share on other sites More sharing options...
Rick Posted March 5, 2014 Share Posted March 5, 2014 http://lua-users.org/wiki/UnitTesting I've never used it but a google search has brought me to that site. Might be a pain when dealing with graphics. Quote Link to comment Share on other sites More sharing options...
Flexman Posted March 5, 2014 Share Posted March 5, 2014 This is what I do everyday professionally, a combination of automated, manual and unit tests. Just adopted Coded UI for GUI testing. It always IS a pain but it's how you ensure quality and reduce the number of bugs that reach your customers and giving a ****ty impression of your product Even having those testing processes in place demonstrates you take quality seriously. You can do it for graphics, certainly you can have tests that check physics, parenting, hiding, movement and confirm these entities behaved as expected. Generally test cases are different from unit testing and involves manual testing to confirm that when you do action "a" you get result "b". (Think of all those small examples in the documentation, could be tweaked for a regression test suite to be run every major release). End users shouldn't be doing this for middleware, your own code maybe. Quote 6600 2.4G / GTX 460 280.26 / 4GB Windows 7 Author: GROME Terrain Modeling for Unity, UDK, Ogre3D from PackT Tricubic Studios Ltd. ~ Combat Helo Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.