pytest-play-docker
June 9, 2019 ยท View on GitHub
pytest-play distributed as a docker based command line utility shipped with all supported third party plugins installed for (test) automation playing with YAML files.
See https://hub.docker.com/r/davidemoro/pytest-play.
Getting Started
These instructions will cover usage information and for the docker container
Prerequisities
In order to run this container you'll need docker installed.
Usage
I assume you have in the current folder a test_*.yml file
containing a valid pytest-play syntax
Container Parameters
Main usage
docker run -i --rm -v $(pwd):/src davidemoro/pytest-play
Standard pytest parameters (see pytest)
docker run -i --rm -v $(pwd):/src davidemoro/pytest-play -x -k "something"
Selenium tests (see play_selenium)
docker run -i --rm -v $(pwd):/src davidemoro/pytest-play --splinter-webdriver=remote --splinter-remote-url=http://USERNAME:ACCESS_KEY@hub.browserstack.com:80/wd/hub
If you are using Windows remove $(pwd) with your current path location.
Built With
- pytest
- pytest-play with the following pytest-play plugins included
- pytest supported third party plugins
- python3
Included the following pytest plugins and utilities too:
- pytest-bdd
- pytest-html
- pytest-metadata
- pytest-randomly
- pytest-repeat
- pytest-testrail
- BlazeMeter Taurus/bzt for performance test using pytest-play
Find Us
Contributing
Any help will be appreciated (suggestions, pull requests, donations, beer, wine, articles).
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Davide Moro - Initial work - blog
See also the list of pytest-play contributors and pytest-play-docker contributors who participated in this project.
License
The pytest-play project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Acknowledgments
-
Python and pytest community
-
Andrea Ratto @neg3ntropy - 10 minutes saved for every build thanks to Docker cache