Skip to content

Commit 54d9b68

Browse files
author
Brandon Duffany
committed
Improve and document testing process
1 parent 61bfcaa commit 54d9b68

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,18 @@
1-
# seleniumTests
2-
Selenium tests for the codebender website
1+
# Codebender Selenium Tests
2+
3+
This repo contains Selenium tests for the codebender website.
4+
The tests are written in Python 3.
5+
6+
## Running Tests
7+
8+
To run tests locally, you'll need to be running a selenium server. See
9+
[here](https://selenium-python.readthedocs.org/installation.html#downloading-selenium-server)
10+
for instructions.
11+
12+
Once you've got a Selenium server running, simply run `$ tox` from within the
13+
repo. If you don't have tox, run `$ sudo pip3 install -r requirements-dev.txt`
14+
from within the repo to install it.
15+
16+
When running tox, you might get a `pkg_resources.DistributionNotFound` error
17+
with reference to `virtualenv`. This is likely due to an out of date setuptools.
18+
To fix this issue, run `$ sudo pip3 install -U setuptools`.

requirements-dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
tox
2+
pytest
3+
virtualenv
4+

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
pytest==2.6.4
22
selenium==2.44.0
3-
tox==1.8.1
4-
virtualenv==12.0.6

0 commit comments

Comments
 (0)