diff --git a/.env.example b/.env.example index b9cd8c9d..ba292487 100644 --- a/.env.example +++ b/.env.example @@ -11,4 +11,3 @@ BASHUNIT_HEADER_ASCII_ART= BASHUNIT_SIMPLE_OUTPUT= BASHUNIT_STOP_ON_FAILURE= BASHUNIT_SHOW_EXECUTION_TIME= -BASHUNIT_DEV_MODE= diff --git a/CHANGELOG.md b/CHANGELOG.md index 07307b0d..2334ec51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased - Improved output: adding a space between each test file +- Remove `BASHUNIT_DEV_MODE` in favor of `BASHUNIT_DEV_LOG` ## [0.18.0](https://github.com/TypedDevs/bashunit/compare/0.17.0...0.18.0) - 2024-10-16 diff --git a/docs/command-line.md b/docs/command-line.md index adbd4696..fe2285bd 100644 --- a/docs/command-line.md +++ b/docs/command-line.md @@ -304,7 +304,6 @@ BASHUNIT_HEADER_ASCII_ART: false BASHUNIT_SIMPLE_OUTPUT: false BASHUNIT_STOP_ON_FAILURE: false BASHUNIT_SHOW_EXECUTION_TIME: true -BASHUNIT_DEV_MODE: true BASHUNIT_VERBOSE: true ######################################################################################################################################## diff --git a/src/env.sh b/src/env.sh index 12092b98..1875ef43 100644 --- a/src/env.sh +++ b/src/env.sh @@ -61,7 +61,7 @@ function env::is_show_execution_time_enabled() { } function env::is_dev_mode_enabled() { - [[ -f "$BASHUNIT_DEV_LOG" ]] + [[ -n "$BASHUNIT_DEV_LOG" ]] } function env::is_verbose_enabled() { @@ -103,7 +103,6 @@ function env::print_verbose() { "BASHUNIT_SIMPLE_OUTPUT" "BASHUNIT_STOP_ON_FAILURE" "BASHUNIT_SHOW_EXECUTION_TIME" - "BASHUNIT_DEV_MODE" "BASHUNIT_VERBOSE" )