Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (799)
Games in Android Showcase (237)
games submitted by our members
Games in WIP (865)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  How do you guys test your games?  (Read 629 times)
0 Members and 1 Guest are viewing this topic.
Offline FabulousFellini
« Posted 2019-11-27 16:19:24 »

For this question, I'm not talking about play tests, I'm talking about unit testing and stuff like that.  Do most of you "big" guys create unit tests for games?  Or just play test and fix bugs that come up?
Currently, for testing and debugging a game, I usually just use print out statements, but I'm wondering if I should be unit testing.  I also realize that might depend on the project and stuff...but is testing like that worth it if I'm not currently coming across any bugs and my game isn't that big/complicated coding wise?

-FabulousFellini
www.fabulousfellini.com
Offline SHC
« Reply #1 - Posted 2019-11-27 17:05:54 »

I'm certainly not a big guy making games. To be frank, I have never even thought about testing before taking up a full-time job in a company. However, having said that, when I look back, I do think certain areas can use up test cases.

Collision Detection

In the collision detection area, I believe we can write the test cases, where simple tests will test out the intersection results of two geometries, and complex tests can even generate dummy worlds, give entities certain velocities, do some simulation steps, and then check for overlapping entities.

I think these simulation tests will enable you to swap existing collision algorithms with new ones without worrying about them failing at some point.

Message Passing in ECS

ECS is another system in which you can add unit tests and verify whether your system correctly dispatches messages. You won't be needing these test cases, but they can be employed here.

And that's the two areas that come out when you say testing to my mind. For other scenarios, we better wait until someone more knowledgeable pitches in.

Offline princec

« JGO Spiffy Duke »


Medals: 1126
Projects: 3
Exp: 20 years


Eh? Who? What? ... Me?


« Reply #2 - Posted 2019-11-27 17:10:36 »

I don't usually write unit tests except for things I don't know if they work or not. The reason being, unit tests are really there to prevent programmers in distant rooms and timelines from one day f**king up your codebase or their own by twiddling something without understanding what effects it would have.

For everyone else though, like us tiny little teams... you are literally wasting your time.

Cas Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline mudlee
« Reply #3 - Posted 2019-11-27 19:57:34 »

I’m the one who is in the first line when tests are missing and say: “I dont fckn care about deadlines but we are gonna write tests or I quit! You can tell that to PM QA, CEO or other titles”.

But in game development I would agree we with princec. Write tests if you are not sure about something. Other than that... just finish your game first! Cheesy
Offline FabulousFellini
« Reply #4 - Posted 2019-11-27 21:16:29 »

Ok, everyone said pretty much what I thought, but wanted to make sure.  Thanks guys!

-FabulousFellini
www.fabulousfellini.com
Offline Drenius
« Reply #5 - Posted 2019-11-29 22:44:07 »

But in game development I would agree we with princec. Write tests if you are not sure about something. Other than that... just finish your game first! Cheesy

It may just be that gamedev leans a bit more towards being art than engineering.

I like to say that the most important measure of quality in gamedev is "looks good enough to me".
Pages: [1]
  ignore  |  Print  
 
 

 
Riven (196 views)
2019-09-04 15:33:17

hadezbladez (4881 views)
2018-11-16 13:46:03

hadezbladez (1799 views)
2018-11-16 13:41:33

hadezbladez (5153 views)
2018-11-16 13:35:35

hadezbladez (1020 views)
2018-11-16 13:32:03

EgonOlsen (4383 views)
2018-06-10 19:43:48

EgonOlsen (5225 views)
2018-06-10 19:43:44

EgonOlsen (2968 views)
2018-06-10 19:43:20

DesertCoockie (3871 views)
2018-05-13 18:23:11

nelsongames (4302 views)
2018-04-24 18:15:36
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!