Regression Testing: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
No edit summary
Abma (talk | contribs)
Line 2: Line 2:


Keep tests small, simple and fast. It doesn't help, if one test takes 10 hours.
Keep tests small, simple and fast. It doesn't help, if one test takes 10 hours.
Results of tests should be reproduceable. Thats not always possible, but at n runs it should return n times the same
 
Results of tests should be reproduceable. Thats not always possible, but at n runs it should return n times the same.
 
The game has to be available with a rapid tag
The game has to be available with a rapid tag
Single tests can be run on demand, means:
Single tests can be run on demand, means:


Line 10: Line 13:


will run test one.
will run test one.


==How to create a test==
==How to create a test==

Revision as of 14:52, 14 March 2012

General rules

Keep tests small, simple and fast. It doesn't help, if one test takes 10 hours.

Results of tests should be reproduceable. Thats not always possible, but at n runs it should return n times the same.

The game has to be available with a rapid tag

Single tests can be run on demand, means:

/cheat /runtest 1

will run test one.

How to create a test

A test will be run on a spring-headless, which means it has no visual output.


The test has to be active, when the modoption "EngineTesting = 1" in script.txt is set, it should default to 0.


In the lua widget / gadget, check if this tag is set, and then start the tests.

TODO: example test widget/gadget