Skip to content

Commit 4f82903

Browse files
committed
test: unskip render_execution_time tests for macOS
1 parent 1745cca commit 4f82903

3 files changed

Lines changed: 2 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- Add bashunit facade to enable custom assertions
77
- Document how to verify the `sha256sum` of the final executable
88
- Enable display execution time on macOS with `SHOW_EXECUTION_TIME`
9-
- Support for displaying the clock without `perl` (for non-MacOS)
9+
- Support for displaying the clock without `perl` (for non-macOS)
1010
- Add `-l|--log-junit <log.xml>` option
1111
- Add `-r|--report-html <report.html>` option
1212

tests/unit/clock_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function test_runtime_in_milliseconds_when_not_empty_time() {
5050

5151
function test_runtime_in_milliseconds_when_empty_time() {
5252
export _OS="OSX"
53-
mock perl /dev/null
53+
mock perl mock_non_existing_fn
5454

5555
assert_empty "$(clock::runtime_in_milliseconds)"
5656
}

tests/unit/console_results_test.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,6 @@ function test_total_asserts_is_the_sum_of_passed_skipped_incomplete_snapshot_and
266266
}
267267

268268
function test_render_execution_time() {
269-
if [[ $_OS == "OSX" ]]; then
270-
skip "Skipping in OSX"
271-
return
272-
fi
273-
274269
local render_result
275270
render_result=$(
276271
# shellcheck disable=SC2034
@@ -282,11 +277,6 @@ function test_render_execution_time() {
282277
}
283278

284279
function test_not_render_execution_time() {
285-
if [[ $_OS == "OSX" ]]; then
286-
skip "Skipping in OSX"
287-
return
288-
fi
289-
290280
local render_result
291281
render_result=$(
292282
# shellcheck disable=SC2034

0 commit comments

Comments
 (0)