Yawns: Yet Another Weblog/News Site

Yawns Test Suite

If you're planning on modifying the code you might be interested to know about the site test suite.

Beneath the tests/ directory are a number of test cases which are written in Perl. (If you followed the Sarge Installation Guide you'll be familiar with the module test at least.)

These tests may be called from the installation directory in a couple of different ways:

make test

If you run "make test" from the top-level directory each of the test cases will run, and give you a summary of the results.

make test-verbose

Useful in the case of any failing test case you can also run "make test-verbose" to run each test case in a verbose manner.

This wll show you precisely which test cases fail.

make test-output

Running "make test-output" will run each test case and save the results to a formatted HTML file, which can be viewed online.

As an example the following is a result of my running the test suite against my installation of Yawns:


Copyright 2007 Steve Kemp