Automated testing: Difference between revisions

Content added Content deleted
imported>Paulproteus
imported>Paulproteus
Line 7: Line 7:
== Tests: An overview ==
== Tests: An overview ==


When you run:
You really should write a test if you add new functionality. That way, you can run:


./bin/mysite test base missions account profile
./bin/mysite test


and you'll see a bunch of dots. Dots mean success.
and you'll see a bunch of dots. Dots mean success.

This runs the many tests that are part of the OpenHatch code.

In general, you really should write a test if you add new functionality. This page explains how and when to write new tests and how to run the tests we have.


=== What a basic test looks like ===
=== What a basic test looks like ===