- given: a working contractor function: contractor_is_working - given: file {filename} function: create_file - given: file {filename} from source directory function: copy_file_from_srcdir - when: I run contractor build {filename} function: run_contractor_build - when: I run contractor dump {filename} function: run_contractor_dump - then: exit code is (?P\d+) regex: true function: exit_code_is - then: file {filename} exists function: file_exists - then: the JSON output matches {filename} function: stdout_json_matches_yaml_file