Runs a given set of tests and outputs the results.