Ejemplo 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)
Ejemplo 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"))
Ejemplo n.º 3
0
from pyinq import discover_tests

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

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

suite = discover_tests('examples', suite="suite1")
if suite:
    report = suite()
    report.print_()
Ejemplo 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)

Ejemplo n.º 9
0
from pyinq import discover_tests


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