This function is still being reviewed, and may be subject to changes to it's signature and naming before uranium 1.0.
Uranium provides a convenience wrapper to interact with executables. This can handle some common scenarios, like execute a script and patch in the stdin, stdout, and stderr streams of the main Uranium processes.
def main(build):
build.packages.install("py.test")
build.executables.run(["py.test", "tests"])
uranium.executables.Executables