Welcome to docs.opsview.com

Testing

In Opsview, there are 2 sets of tests run:

  • Automated tests
  • Manual

Automated tests

This uses perl's TAP (Test Anything Protocol) framework. To run, execute:

cd {top level}
make test

on a developement server. This runs a series of test scripts in opsview-core/t/*.t and opsview-web/t/*.t. Files that do not match this criteria are ignored.

Under t/var is opsview.test.db. This is a fixed test database that is used for testing. Update this test database to include new testcases as required.

There is also a test to make sure that this db is updated, so if you update upgradedb_opsview.pl, make sure this test db is updated too.

Hash based response tests

There are some tests which confirm that the status data is returned appropriately. Use

perl t/801status.t resetperldumps

to update the expected perl dump files. Use svn diff -x -b to view differences as perl's Data::Dump adds in arbitrary white space to beautify the expected files.

Manual tests