Skip to main content

A pytest package implementing perceptualdiff for Selenium tests.

Project description

# pytest-selenium-pdiff

[![Current Version](https://img.shields.io/pypi/v/pytest-selenium-pdiff.svg)](https://pypi.python.org/pypi/pytest-selenium-pdiff) [![Build Status](https://img.shields.io/circleci/project/rentlytics/pytest-selenium-pdiff.svg)](https://circleci.com/gh/rentlytics/pytest-selenium-pdiff)

A pytest package implementing perceptualdiff for Selenium tests.

## Features * Embeds screenshots in [pytest-html](https://pypi.python.org/pypi/pytest-html) reports * Supports ImageMagick or perceptualdiff for image comparison.

## Use with pytest-html and pytest-selenium By default pytest-selenium will embed a screenshot depicting the current browser state. This will lead to a duplicated screenshot because of this plugin’s behavior. At this time the best way to exclude the pytest-selenium screenshot is to set the environment variable SELENIUM_EXCLUDE_DEBUG=screenshot.

## Running tests 1. Ensure tox is installed with pip install tox 1. Install PhantomJS with brew install phantomjs 1. Use tox to run tests against py2.7 and py3.5. 1. Rentlytics employees can run make release to push to PyPi. In order to authenticate, you need a .pypirc file in your home directory

History

0.1.0 (2016-06-02)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-selenium-pdiff-0.3.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_selenium_pdiff-0.3.0-py2.py3-none-any.whl (7.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytest-selenium-pdiff-0.3.0.tar.gz.

File metadata

File hashes

Hashes for pytest-selenium-pdiff-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2da52be2cfb09e26b2b27c89c7127303b5f1362feb03009ab54b0d295c8ca9fb
MD5 a81c5bf25a87681168e42d52a5bb419c
BLAKE2b-256 6f2833c9a0d9b19b29d15730dd6eec8329c594e48969e06397f98bbcbcedf0f4

See more details on using hashes here.

File details

Details for the file pytest_selenium_pdiff-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_selenium_pdiff-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9cecbed11e75dca011820356aa5cfa5947916b0c56f9384f97e2efb9892e3219
MD5 27632b41397ead2c453d28b0f9ffda0f
BLAKE2b-256 6a46a2f98b4098ee626e34daddb46d985db31f87f9b02bbdfff3cd52bcd3cc60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page