from pyinq import discover_tests if __name__ == "__main__": suite = discover_tests('.') print "SUITE: " + str(suite.name) for module in suite: print "\tMODULE: " + str(module.name) for cls in module: print "\t\tCLASS: {cls.name} (SUITE: {cls.suite})".format(cls=cls) for test in cls: print "\t\t\tTEST: {test.name} (SUITE: {test.suite})".format( test=test)
from pyinq import discover_tests from pyinq import printers from pyinq.printers import html suite = discover_tests("examples", suite="suite1", pattern="assert_tests") if suite: report = suite() printers.print_report(report, html, html=open("deprecated_mapping.html", "w"))
from pyinq import discover_tests if __name__ == "__main__": suite = discover_tests('examples', "assert*") if suite: print "HERE" suite()
from pyinq import discover_tests from pyinq import printers from pyinq.printers.deprecated import html suite = discover_tests('examples', suite="suite1", pattern="assert_tests") if suite: report = suite() printers.print_report(report, html, html=open("deprecated.html", 'w'))
from pyinq import discover_tests suite = discover_tests("examples", suite="suite1") if suite: report = suite() report.print_()
from pyinq import discover_tests if __name__=="__main__": suite = discover_tests('.') print "SUITE: " + str(suite.name) for module in suite: print "\tMODULE: " + str(module.name) for cls in module: print "\t\tCLASS: {cls.name} (SUITE: {cls.suite})".format(cls=cls) for test in cls: print "\t\t\tTEST: {test.name} (SUITE: {test.suite})".format(test=test)
from pyinq import discover_tests suite = discover_tests('examples', suite="suite1") if suite: report = suite() report.print_()
from pyinq import discover_tests from pyinq import printers suite = discover_tests('examples', suite="hello") if suite: report = suite() printers.print_report(report)
from pyinq import discover_tests if __name__=="__main__": suite = discover_tests('examples',"assert*") if suite: print "HERE" suite()