We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 308c139 commit 4401a13Copy full SHA for 4401a13
1 file changed
getting_started/tests/test_skipping
@@ -0,0 +1,30 @@
1
+# This test demonstrates some test skipping logic that
2
+# one can implement with bash_unit
3
+
4
+todo_will_always_be_siped() {
5
+ fail "This test is always skipped"
6
+}
7
8
+if uname | grep Linux
9
+then
10
+ test_proc_exists() {
11
+ assert "ls /proc/" "there should exist /proc on Linux"
12
+ }
13
+ test_another_test_to_run_only_on_linux() {
14
+ assert "mkdir /tmp/foo/bar -p"
15
16
+fi
17
18
+test_that_always_run() {
19
+ assert true
20
21
22
+if uname | grep Darwin
23
24
+ test_proc_does_not_exist() {
25
+ assert_fail "ls /proc/" "there should not exist /proc on Darwin"
26
27
+ test_another_test_to_run_only_on_darwin() {
28
+ assert "mkdir -p /tmp/foo/bar"
29
30
0 commit comments