Skip to content

Basic testing framework that prints beautiful errors

License

Notifications You must be signed in to change notification settings

piecubed/box-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

box-test

Basic testing framework that prints beautiful errors.

from boxtest import Tester

async def myAsyncTest(text):
    print('foo')
    print(text)

def mySyncTest(framework):
    print('Whats the best testing framework?')

    if framework.lower() == 'boxtest':
        print('boxtest is correct!')
    else:
        raise Exception('Wrong!')

if __name__ == '__main__':
    tester = Tester()

    tester.addAsyncTest(myAsyncTest('bar'))
    tester.addSyncTest(framework, 'unittest')
    tester.addSyncTest(framework, 'boxtest')

    tester.run()

About

Basic testing framework that prints beautiful errors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages