https://github.com/stepicorg/stepik-pytest
Test scenario runner for Stepic Linux challenge
https://github.com/stepicorg/stepik-pytest
Last synced: 6 months ago
JSON representation
Test scenario runner for Stepic Linux challenge
- Host: GitHub
- URL: https://github.com/stepicorg/stepik-pytest
- Owner: StepicOrg
- Created: 2014-10-13T21:09:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-03-29T21:58:36.000Z (almost 4 years ago)
- Last Synced: 2025-03-22T08:30:03.741Z (10 months ago)
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 12
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
stepic-pytest
=============
Test scenario runner for Stepic Linux challenge.
## Install
```bash
mkvirtualenv --python=/usr/bin/python2.7 stepic-linux
pip install https://github.com/StepicOrg/stepic-pytest/archive/master.zip
```
## Usage
Run a test scenario that checks `localhost`, the test scenario is located in the file `test_scenario.py`:
```bash
py.test -s -z --assert plain --server localhost --ssh-key local test_scenario.py
```
Or run a test scenario that checks a remote server `HOSTNAME` using SSH key `~/.ssh/id_rsa`:
```bash
py.test -s -z --assert plain --server HOSTNAME --ssh-key ~/.ssh/id_rsa test_scenario.py
```
There is an extra option `--zoe-report` for the pytest command that prints a special structure used by Stepic to retrieve a check result and feedback message.