Find untested objects with the catalog

Sync an environment, see coverage per object and generate boundary tests and data checks.

In short

The catalog lists every stored procedure, function, view and table an environment exposes, with its test coverage - so you can see which have no test. From a row you open a new test, generate boundary tests for a routine or generate data checks for a table or view.

Before you start

Sync and browse

  1. Open the "Catalog" tab and choose an environment, or keep "Every environment".
  2. Press "Sync now". A message says how many objects were found, how many are new and how many are gone.
  3. Search by name, or filter by kind and coverage: Never run, Passing or Failing.
  4. Press "New test" on a row to open the editor with the object and parameters filled in.

Generate boundary tests

  1. On a stored procedure or function row, press "Generate boundary tests".
  2. A happy-path test with typical values is made, plus one test per edge value of each input parameter, up to 60 per click.
  3. Find them in a test group named after the object, tagged Generated.
  4. Add Error raised or No error to each one to say which outcome is right.

Generate data checks

  1. On a table or view row, open the row's menu and press "Generate data checks".
  2. One check says the table has rows; one check per column that may be empty says no row leaves it empty. Up to 60 per click.
  3. Each check is a query that counts on the database, so it judges the whole table, not only the rows a run keeps.
  4. Find them in a test group named after the table, tagged Generated. The table now counts as covered.
  5. Keep the checks whose rule must hold for your data and delete the ones where an empty table or empty values are fine.
  6. Press it again after a new column appears: only checks the project does not hold yet are added.

Good to know

Generated tests really run They call the real procedure with NULL, huge numbers and long strings. They roll back, but they run, and each counts toward your run limit. Try them on Local, Development or QA first.

If something goes wrong

Related