Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [unit-testing]

A method by which individual parts of code or modules together with associated control data, usage procedures, and operating procedures, are tested to determine if they are fit for use.

1
vote
0answers
17 views

Unity build trying to include Editor Scripts

I'm having a peculiar problem. I'm creating a 2D Unity game using Fungus for cutscenes and the Unity Test Tools for unit testing. The game runs fine in the editor, but when I try and build an ...
0
votes
0answers
40 views

Override scene used in Unity Test with custom one

I have a Unity Test which should load my main scene and start getting some components from there and interacting with them. But I have found that I can not load such scene, I'm getting the following ...
1
vote
1answer
234 views

How to properly setup unit testing for my c++ game project? [closed]

I'm currently creating a 2d game in C++ using visual studio and utilizing gtest/gmock for my testing framework. The problem I'm having is I'm not sure what my best option is for testing. I'm using SDL ...
1
vote
0answers
50 views

Unit testing graphics [duplicate]

What is the standard (if there is one) method which professional games developers use to unit test (or closest equivalent) graphics output? I am developing with Corona SDK and I would like to test ...
1
vote
0answers
65 views

I want to test the Animator component of a gameobject using nunit, but I am having issues

I made a Blender 3D model with animations. Then I used the Animator Controller, and attached it to the model. The Animator Controller has a few Boolean parameter variables like ...
5
votes
1answer
2k views

How to write a unit test in Unity? [duplicate]

is there a tutorial and patterns to write unit tests in Unity ? Should we use the classical c# way and test the code or should we test the interactions in UI ? If so how?
0
votes
2answers
103 views

How do you create test for unity variables that are set through the [SerializeField] tag?

I need to create some tests for a bunch of variables that are initialized via the editor, So in the script they are always null and can't be set publicly. Usually using the tag is a good way to ...
5
votes
2answers
4k views

How to write testable MonoBehaviour and test scripts in Unity?

I had problems with decoupled scripts and exposing interfaces in Unity, and these answers helped me a lot. But now, since I don't have hard-coded references in my scripts, I wanted to write unit tests ...
2
votes
2answers
1k views

How do I separate testable game logic from my UI in Cocos2d-x?

I read some articles on why I should separate game logic and UI code: That makes it possible to test game logic code can be independently of the rest. However, I am having trouble implementing this in ...
1
vote
1answer
687 views

Unit Testing with Cocos2D

How to implement Unit Testing with Cocos2D framework? What are the good practices? Is there any testing framework like JUnit Framework at Eclipse for Android?
12
votes
3answers
3k views

How can I do unit testing in Unity? [closed]

How to implement Unit Test at Unity3D. I wonder if it would be possible to extend the Unity editor to have some sort of testing framework in it. Is there any guideline to implement it? Any ...
2
votes
0answers
433 views

UI Automation for Flash Games [closed]

has anyone used or heard of a good selenium-like toolset for doing automated UI testing with Flash? I would ideally like to have the ability to record and playback events against my game and integrate ...
22
votes
3answers
7k views

How does one do unit testing in a game engine?

Much to my shame, I have never written a proper unit test, only small unorganized test programs that I would then dispose of after the test succeeded. I don't really have a clear idea of how unit ...
18
votes
3answers
6k views

How can I unit test rendering output?

I've been embracing Test-Driven Development (TDD) recently and it's had wonderful impacts on my development output and the resiliency of my codebase. I would like to extend this approach to some of ...
34
votes
7answers
19k views

How common is automated testing in game development? [closed]

Do gamers developers use to write unit and integration tests? How common is it among puzzle developers? And among developers of MMORPGs and FPSes? (I have no background in game development neither am ...
5
votes
2answers
2k views

Best practices for UnitTesting heavy Flash game clients and libraries?

We have several quite heavy game clients completely written in AS3 (some also use Flex for UI). Some clients are built with PureMVC, others are a pile of spaghetti code that's grown over the years. We ...
25
votes
4answers
3k views

How to design a game's software such that it is easy to unit test?

Is it practical to use a testing framework like JUnit in a game development situation? What sort of design considerations can you follow in order to make your game more testable? What parts of a game ...
13
votes
1answer
2k views

Unit Testing a C#/XNA Game Project

I have been dabling in game development since I started programming, but never very seriously. I work as a business app developer, but I'm working on some games in my spare time. In the business ...