Test Cases

Why Tests?

Our main reason to have tests is to ensure we do not loose existing functionality when adding new functionality. Another reason, hopefully getting less important, is to figure out what influences bugs had, respectively what is influenced by a bugfix.

Possible Examples of Tests

The following list is not complete and likely never will. It is more to give you an idea, what could be tested:

  • readers and writers for data (Generating data, writing data to file. Reading the file and writing it out again should produce the same file as before).
  • calculating link travel times based on events
  • events-generation, e.g. from the transport simulation
  • calculation of plans' scores
  • are parameters correctly reflected in the execution (e.g. when replanning?)
  • ...

Automatic Run of the Tests

The tests are automatically run every night. When you log in on matsim.org, you'll find a link in the left navigation area ("developer info") where you can look at the nightly status of the tests. If errors or failures occur, an email is sent to Marcel Rieser who will then inform people as necessary.

More Information


Warning: Table 'watchdog' is read only query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', '<em>Table &amp;#039;sessions&amp;#039; is read only\nquery: UPDATE sessions SET uid = 0, cache = 0, hostname = &amp;#039;38.107.179.232&amp;#039;, session = &amp;#039;&amp;#039;, timestamp = 1328354331 WHERE sid = &amp;#039;e972b2ab7dd755a2094beea8ac708f02&amp;#039;</em> in <em>/home01/vsp_access/matsimwww/includes/database.mysql.inc</em> on line <em>174</em>.', 2, '', 'http://matsim.org/node/39', '', '38.107.179.232', 1328354331) in /home01/vsp_access/matsimwww/includes/database.mysql.inc on line 174