Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
297 views

In Unity how can I unit test the start method? I am not trying to test interaction between objects but the private methods are called by the Start method, so I figured I should call the start method ...
WVrock's user avatar
  • 111
1 vote
1 answer
137 views

I'm experiencing an issue with my PlayMode tests, where all tests pass individually, but when running 21 or more tests together (using Run Selected or Run All), the same 2 tests fail. From further ...
Samuel Slade's user avatar
1 vote
2 answers
802 views

My player has an Action in the Input System Move, that takes a Vector2 and moves the player based on that input. Straight-...
JShoe's user avatar
  • 75
0 votes
1 answer
201 views

I have been reading about Edit Mode vs Play Mode testing and I'm not seeing any real reasons of why I would use Play mode testing over Edit mode testing. My assumption is that edit mode is better for ...
Jacksonkr's user avatar
  • 259
0 votes
1 answer
714 views

I have followed the Unity Test Framework documentation to create an EditMode test assembly and a test script. When I try to test a function like Utils.SomeMethod(), ...
Matt's user avatar
  • 405
0 votes
1 answer
277 views

For eg having a class that is rendering something on the screen, could be even a point or a line if not an image or whatever. How is possible to write some tests for that class only? or just a small ...
Raffaello's user avatar
  • 125
2 votes
0 answers
394 views

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 ...
Ben Partridge's user avatar
1 vote
0 answers
69 views

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 ...
Matt W's user avatar
  • 203
4 votes
1 answer
3k views

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?
Rıfat Erdem Sahin's user avatar
6 votes
2 answers
7k views

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 ...
K.L.'s user avatar
  • 795
1 vote
1 answer
765 views

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?
Md Mahbubur Rahman's user avatar
2 votes
0 answers
461 views

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 ...
j03m's user avatar
  • 149
22 votes
4 answers
10k views

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 ...
notlesh's user avatar
  • 3,897
5 votes
2 answers
2k views

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 ...
Baelnorn's user avatar
  • 153
13 votes
1 answer
3k views

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 ...
Nate's user avatar
  • 5,064