Skip to content

Allow multiple asserts on standalone exit_code assertion #339

@Chemaclass

Description

@Chemaclass

Related: #336 (comment)

Enable running an additional assertion over the generated output from assert_exit_code (docs).

Example 1

bashunit -a exit_code "1" "the_command" -a contains "some error"

Would be identical as:

OUTPUT=$(bashunit -a exit_code "1" "the_command")
bashunit -a contains "some error" $OUTPUT

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions