Flask-ZenFlask-Script commands to integrate with PyZen | |
Download |
Flask-Zen Ranking & Summary
Advertisement
- License:
- BSD License
- Publisher Name:
- Noah Kantrowitz
- Publisher web site:
- http://trac-hacks.org/
Flask-Zen Tags
Flask-Zen Description
Flask-Script commands to integrate with PyZen Flask-Zen is a Flask extension that allows you to use PyZen via Flask-Script commands. Both a simple test runner command and the standard PyZen auto-runner are provided. You can install the requirements from PyPI with easy_install or pip or download them by hand.InstallationInstall the extension with one of the following commands:easy_install Flask-Zenor alternatively if you have pip installed: pip install Flask-ZenConfigurationPyZen exposes two Flask-Script commands: Test and ZenTest. To configure both:from flaskext.script import Managerfrom flaskext.zen import Test, ZenTestmanager = Manager(app)manager.add_command('test', Test())manager.add_command('zen', ZenTest())if __name__ == '__main__': manager.run()Any of the command-line options below can be overridden using a keyword argument to the Test or ZenTest constructor:manager.add_command('zen', ZenTest(nocolor=True, ui='none'))UsageThe Test command will run a single test run and exit. The ZenTest command will run the normal PyZen continuous tester.-s, --start-dir : default: location of manage.py Base directory for test discovery.-p, --pattern : default: */tests/*.py;*/tests.py Semicolon separated file globs to use for loading tests.-v, --verbosity : default: 1 Test runner verbosity.--nocolor : flag, default: False Disable colored output.-u, --ui : only for ZenTest, default: autodetect Force the use of a specific UI module. Available options are win32, osx, linux, and none. Requirements: · Python · Flask
Flask-Zen Related Software