Skip to content

Commit 58ab46f

Browse files
committed
One can now declare todo tests that are not yet implemented
1 parent 3829ce8 commit 58ab46f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

bash_unit

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717
# https://github.com/pgrange/bash_unit
1818

19-
VERSION=v1.3.1
19+
VERSION=v1.4.0
2020

2121
ESCAPE=$(printf "\033")
2222
NOCOLOR="${ESCAPE}[0m"

docs/man/man1/bash_unit.1

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.\" Title: bash_unit
33
.\" Author: [see the "AUTHORS" section]
44
.\" Generator: Asciidoctor 1.5.5
5-
.\" Date: 2017-06-27
5+
.\" Date: 2017-07-03
66
.\" Manual: \ \&
77
.\" Source: \ \&
88
.\" Language: English
99
.\"
10-
.TH "BASH_UNIT" "1" "2017-06-27" "\ \&" "\ \&"
10+
.TH "BASH_UNIT" "1" "2017-07-03" "\ \&" "\ \&"
1111
.ie \n(.g .ds Aq \(aq
1212
.el .ds Aq '
1313
.ss \n[.ss] 0
@@ -212,6 +212,9 @@ You may write a \fBteardown\fP function that will be exectuted after each test i
212212
.sp
213213
If you need to set someting up only once for all tests, simply write your code outside any test function, this is a bash script.
214214
.sp
215+
If you want to keep an eye on a test not yet implemented, prefix the name of the function by \fBtodo\fP instead of test.
216+
Test to do are not executed and do not impact the global status of your test suite but are displayed in \fBbash_unit\fP output.
217+
.sp
215218
\fBbash_unit\fP changes the current working directory to the one of the running test file. If you need to access files from your test code, for instance the script under test, use path relative to the test file.
216219
.sp
217220
You may need to change the behavior of some commands to create conditions for your code under test to behave as expected. The \fBfake\fP function may help you to do that, see bellow.

0 commit comments

Comments
 (0)