diff --git a/test/miaou-bash.test.bash b/test/miaou-bash.test.bash index ce4d6f5..40e564c 100755 --- a/test/miaou-bash.test.bash +++ b/test/miaou-bash.test.bash @@ -53,6 +53,8 @@ fail_type false FALSE fail_type return RETURN fail_type command_not_found COMMAND_NOT_FOUND fail_type exit EXIT +fail_type source_not_found SOURCE_NOT_FOUND +fail_type file_not_found FILE_NOT_FOUND failed=$((TEST_COUNT - SUCCESS_COUNT)) if [[ $failed -gt 0 ]]; then diff --git a/test/stub/scenario.bash b/test/stub/scenario.bash index 0c53f09..733e8a8 100755 --- a/test/stub/scenario.bash +++ b/test/stub/scenario.bash @@ -79,6 +79,13 @@ function do_unbound_variable { echo "b=${b}" } +function do_source_not_found { + source "./lib/fake/nope.bash" +} + +function do_file_not_found { + ./lib/fake/nope.bash +} # FUNCTIONS function call_function_which_will_exit {