runway.tests.handlers.script module

Script test runner.

class runway.tests.handlers.script.ScriptHandler[source]

Bases: runway.tests.handlers.base.TestHandler

Handle script tests.

Parameters

commands (List[str]) – A list of commands to be executed in order. Each command is run in its own subprocess. The working directory will be the same as where the ‘runway test’ command was executed.

Example

tests:
  • name: example-test type: script args:

    commands:
    • echo “this is an example”

    • pwd

classmethod handle(name, args)[source]

Perform the actual test.