#!/usr/libexec/platform-python

import twopence

def display(what, found, whats = None):
	print()
	if not found:
		print(f"No test {what} found.")
	else:
		if not whats:
			whats = what + "s"
		print(f"List of test {whats}:")
		for info in found:
			print(f"  {info.name:20}  {info.path}")

testbase = twopence.TestBase()
display("case", found = testbase.testcases)
display("suite", found = testbase.testsuites)
display("matrix", found = testbase.testmatrices, whats = "matrices")
