Example #1
0
 def given(self, module):
     bolt.register_module_tasks(module)
Example #2
0
import bolt
import bolt_flask
import behave_restful.bolt_behave_restful as bbr

bolt.register_module_tasks(bolt_flask)
bolt.register_module_tasks(bbr)

# Bolt has a provided task sleep that is automatically registered

config = {
    'start-flask': {
        'startup-script': 'run_api.py'
    },
    'wait-for-server-running': {
        'url': 'http://127.0.0.1:5000/ping'
    },
    'behave-restful': {
        'directory': 'features',  # path to features folder
        # 'options': {
        # 	'i': 'posts_binary_data.feature' # test just one feature
        # }
        # 'definition': 'yourdefinition',	# if you are using definitions for different environments
    }
}

# Register a task to invoke all that here:

bolt.register_task(
    'test-features',
    ['start-flask', 'wait-for-server-running', 'behave-restful'])
Example #3
0
import os.path

import bolt
import behave_restful.bolt_behave_restful as bolt_br
bolt.register_module_tasks(bolt_br)


# DEVELOPMENT TASKS
bolt.register_task('default', [
    'pip',
    'run-unit-tests',
    'run-feature-tests'
])
bolt.register_task('ut', [
    'run-unit-tests'
])
bolt.register_task('ct', [
    'conttest'
])
bolt.register_task('ft', [
    'run-feature-tests'
])

# CI/CD TASKS
bolt.register_task('execute-unit-tests', [
    'clear-pyc-testing',
    'mkdir',
    'mkdir.tests',
    'mkdir.tests.coverage',
    'nose.ci',
])