Skip to content

Functional tests for Reel Radio's new features

Notifications You must be signed in to change notification settings

reelradio/tests

Repository files navigation

Reel Radio tests

Selenium tests to test all site functionality.

First time setup

Create a new Python 3 virtual environment so we can install dependencies, and activate it:

python3 -m env venv
. venv/bin/activate

Then install the requirements:

pip install -r requirements.txt

Then install a browser driver: https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/ and add the driver file to the venv/bin directory.

I've used the geckodriver for Firefox in the python scripts.

https://github.com/SergeyPirogov/webdriver_manager contains instructions for how to use different drivers in your code.

When returning after closing terminal

Ensure your venv is activated

. venv/bin/activate

Running the tests

Either run the tests individually, ie:

python get-firefox.py

Or run all of the tests:

for f in *.py; do python "$f"; done

To pause execution after each action, enable debug mode. To continue execution, hit Enter in the terminal

python get-firefox.py -d

or

python get-firefox.py --debug

About

Functional tests for Reel Radio's new features

Resources

Stars

Watchers

Forks

Languages