mailinabox/test/README.md

25 lines
565 B
Markdown
Raw Normal View History

2017-02-02 15:35:59 +00:00
This is the mailinabox test suite. It uses the excellent pytest module to check the functionality of the different services.
2016-12-11 15:00:04 +00:00
2017-02-02 15:35:59 +00:00
# Usage
2016-12-11 15:00:04 +00:00
start-up a vagrant box
vagrant up
2017-02-02 15:35:59 +00:00
install test requirements (using a virtualenv is highly recommended)
2016-12-11 15:00:04 +00:00
2017-01-23 20:12:13 +00:00
pip install -r requirements.txt
2016-12-11 15:00:04 +00:00
run the tests
pytest
to just run a subset of the tests (e.g. the ssh related ones):
pytest test_ssh.py
2017-01-23 20:12:13 +00:00
2017-02-02 15:35:59 +00:00
# Contributing
2016-12-11 15:00:04 +00:00
2017-02-02 15:35:59 +00:00
pytest auto-discovers all tests in this directory. The test functions need to be named "test_..." and there needs to be at least one assert statement.