BDD Tests and reporting Reporting
Warning
This code is meant for testing and not to be enabled in a production setting.
Running BDD tests
cattle_grid uses a set of Gherkin tests provided by fediverse-features. They are currently configured using
tag = "0.1.9"
features = [
"w3c/ap_follow.feature",
"w3c/ap_unfollow.feature",
"w3c/ap_follow_messaging.feature",
"w3c/ap_block.feature",
"w3c/ap_unblock.feature",
"fedi/node_info.feature"
]
First download the features via
Second start the docker containers and the runner
Starting the containers will take some time. The BDD tests can then be run via
inside the runner container.
Configuration
Reporting can be enabled by setting
Generated reports are stored in the reports
directory.
A somewhat current set of reports is available
at cattle_grid_reports.
cattle_grid.testing.reporter
Made as a tool to create reports from test runs done using behave. Basically, a scenario is run, and a markdown file is created.
Currently recorded are the step, the scenario, messages
received on the incoming.#
and outgoing.#
routing keys
of the cattle_grid exchange.
Finally, fetch results from gateway are reported.