- Home /
Testing in Unity3d
I came from the Ruby universe, where testing is seen as the most fruitful activity.
I tried to google "Testing in Unity3d", but it doesn't return anything promising. Is it because it is not considered important? Is it because it is hard and very expensive to do?
Specifically, I would like to use some kind of acceptance tests in my game. Is there anything simular to Cucumber and Capybara/Selenium in Unity3d?
P.S. I saw cukunity, but it works only for touch devises.
Answer by asafsitner · Nov 09, 2012 at 04:52 PM
I haven't tried any of it, but **this AltDevBlog entry** appears to cover what you are looking for.
Link seems broken (404). Alternative link would be much appreciated. Or keywords of what the content of that page was (to find similar content).
I believe this is the latest link: http://altdevblog.com/2012/03/05/unit-testing-in-unity/
Answer by IronFurball · Nov 09, 2012 at 03:23 PM
What exactly do you mean by "testing", in unity u cant terst the game youve made by simply pressing the little play icon at the top of the screen.
As a second option, you can also go to: file-build settings, select the platform you wish to test on, and hit build.
I mean unit and integration tests. The idea is to use BDD and TDD approach to game development, where you would write a test first and then you would write a code for the test to succeed.
Answer by armoredpokey · Dec 05, 2013 at 03:18 PM
I'm also from the Ruby universe, and I'm definitely feeling the lack of an easy test framework too. This isn't really akin to cucumber; I feel like true integration and acceptance testing is still really hard to accomplish, but I've managed to do a lot with it so far: https://github.com/asross/unity_tests