forked from GambitBSM/gambit_bats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docs.bats
46 lines (37 loc) · 934 Bytes
/
docs.bats
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
#!/usr/bin/env bats
#
# Tests of docs in BATS framework. See e.g. https://github.com/sstephenson/bats
#
# Written by A. Fowlie.
load funcs
setup() {
:
}
# Echo information on teardown, if error
teardown() {
error "$output"
}
@test "check for capabilities that are missing in docs" {
run python docs.py capabilities missing
[ $status = 0 ]
}
@test "check for models that are missing missing in docs" {
run python docs.py models missing
[ $status = 0 ]
}
@test "check for capabilities that are duplicated in docs" {
run python docs.py capabilities duplicates
[ $status = 0 ]
}
@test "check for models that are duplicated in docs" {
run python docs.py models duplicates
[ $status = 0 ]
}
@test "check for capabilities that are extra in docs" {
run python docs.py capabilities extra
[ $status = 0 ]
}
@test "check for models that are extra in docs" {
run python docs.py models extra
[ $status = 0 ]
}