mirror of
https://github.com/SaraSmiseth/prosody.git
synced 2025-04-19 16:01:14 +00:00
wip tests 7
This commit is contained in:
parent
d064d7b3de
commit
616052d9cc
6 changed files with 23 additions and 4 deletions
9
.gitmodules
vendored
Normal file
9
.gitmodules
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
[submodule "tests/bats/bats-support"]
|
||||
path = tests/bats/bats-support
|
||||
url = https://github.com/bats-core/bats-support.git
|
||||
[submodule "tests/bats/bats-core"]
|
||||
path = tests/bats/bats-core
|
||||
url = https://github.com/bats-core/bats-core.git
|
||||
[submodule "tests/bats/bats-assert"]
|
||||
path = tests/bats/bats-assert
|
||||
url = https://github.com/bats-core/bats-assert.git
|
1
tests/bats/bats-assert
Submodule
1
tests/bats/bats-assert
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 0a8dd57e2cc6d4cc064b1ed6b4e79b9f7fee096f
|
1
tests/bats/bats-core
Submodule
1
tests/bats/bats-core
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 8fb853a6cbc0169958707381985f3cd59789ccb1
|
1
tests/bats/bats-support
Submodule
1
tests/bats/bats-support
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit d140a65044b2d6810381935ae7f0c94c7023c8c3
|
|
@ -35,12 +35,11 @@ sudo docker-compose down \
|
|||
&& pytest \
|
||||
&& deactivate \
|
||||
&& sleep 1 \
|
||||
&& sudo docker-compose logs | grep "message to" \
|
||||
&& sudo docker-compose logs | grep "type='error'"
|
||||
&& ./bats/bats-core/bin/bats tests.bats
|
||||
|
||||
#&& sudo docker-compose logs | grep "message to" \
|
||||
#&& sudo docker-compose logs | grep "type='error'"
|
||||
# Received[c2s]: <message to='*@localhost' * type='chat'>
|
||||
# Should be five times in log
|
||||
|
||||
# TODO Call bats and create tests to check log output
|
||||
|
||||
sudo docker-compose down
|
||||
|
|
8
tests/tests.bats
Normal file
8
tests/tests.bats
Normal file
|
@ -0,0 +1,8 @@
|
|||
load 'bats/bats-support/load'
|
||||
load 'bats/bats-assert/load'
|
||||
|
||||
@test "TODO write test" {
|
||||
run false
|
||||
assert_success
|
||||
assert_output "TODO"
|
||||
}
|
Loading…
Reference in a new issue