-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sh
executable file
·61 lines (43 loc) · 2.5 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
########################################################################################################################
# Run functional tests written with bats - https://github.com/sstephenson/bats #
# #
# Copyright (c) 2018-2019, Kay Stenschke #
# All rights reserved. #
# #
# Install bats on Linux: sudo apt-get install bats #
# Install bats on Mac: brew install bats #
########################################################################################################################
START_TIME=$SECONDS
printf "\033[4mTest commands recognition and display of help\033[0m\n"
bats ./test/functional/help.bats.sh
printf "\n\033[4mTest initialization\033[0m\n"
bats ./test/functional/initialization.bats.sh
printf "\n\033[4mTest clear command\033[0m\n"
bats ./test/functional/clear.bats.sh
printf "\n\033[4mTest start command\033[0m\n"
bats ./test/functional/start.bats.sh
printf "\n\033[4mTest stop command\033[0m\n"
bats ./test/functional/stop.bats.sh
printf "\n\033[4mTest resume command\033[0m\n"
bats ./test/functional/resume.bats.sh
printf "\n\033[4mTest comment command\033[0m\n"
bats ./test/functional/comment.bats.sh
printf "\n\033[4mTest task command\033[0m\n"
bats ./test/functional/task.bats.sh
printf "\n\033[4mTest merge command\033[0m\n"
bats ./test/functional/merge.bats.sh
printf "\n\033[4mTest split command\033[0m\n"
bats ./test/functional/split.bats.sh
printf "\n\033[4mTest day-tasks (ud) command\033[0m\n"
bats ./test/functional/day-tasks.bats.sh
printf "\n\033[4mTest (all-)day command\033[0m\n"
bats ./test/functional/day.bats.sh
printf "\n\033[4mTest remove command\033[0m\n"
bats ./test/functional/remove.bats.sh
printf "\n\033[4mTest undo command and backup creation\033[0m\n"
bats ./test/functional/undo-backup.bats.sh
printf "\n\033[4mTest view command\033[0m\n"
bats ./test/functional/view.bats.sh
ELAPSED_TIME=$(($SECONDS - $START_TIME))
printf "\nDone. Bats tests ran for $ELAPSED_TIME seconds.\n\n";