Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 786 Bytes

options.rst

File metadata and controls

34 lines (23 loc) · 786 Bytes

Options

With uranium, arguments that configure uranium itself should be passed in before the task name, and any argument passed in afterward should be specific for the function.

For example, consider the following scenario:

./uranium test -sx

When using uranium to execute tests, one should be able to parameterize that test execution. To facilitate this, Uranium provides the Options class:

def test(build):
    """ execute tests """
    main(build)
    _install_test_modules(build)
    build.executables.run([
        "py.test", os.path.join(build.root, "tests"),
    ] + build.options.args)

Full API Reference

uranium.options.BuildOptions