Esempio n. 1
0
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)
Esempio n. 2
0
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"))
Esempio n. 3
0
from pyinq import discover_tests

if __name__ == "__main__":
    suite = discover_tests('examples', "assert*")
    if suite:
        print "HERE"
        suite()
Esempio n. 4
0
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'))
Esempio n. 5
0
from pyinq import discover_tests

suite = discover_tests("examples", suite="suite1")
if suite:
    report = suite()
    report.print_()
Esempio n. 6
0
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)
Esempio n. 7
0
from pyinq import discover_tests

suite = discover_tests('examples', suite="suite1")
if suite:
    report = suite()
    report.print_()
Esempio n. 8
0
from pyinq import discover_tests
from pyinq import printers

suite = discover_tests('examples', suite="hello")
if suite:
	report = suite()
	printers.print_report(report)

Esempio n. 9
0
from pyinq import discover_tests


if __name__=="__main__":
	suite = discover_tests('examples',"assert*")
	if suite:
		print "HERE"
		suite()