Skip to content

Conversation

@gurupratap-matharu
Copy link
Contributor

Testing in Multiple Environments

Tox is an application that automates testing in multiple environments.

Installation

Tox is available on PyPI via pip

pip install tox

Configuration

This PR holds the tox.ini config file tests the package against major python versions
otherwise run tox-quickstart

Run

Simple execute
tox

See video attached

  • Tox will output the results of your tests against each environment.
  • The first time it runs, Tox takes a little bit of time to create the virtual environments, but once it has, the second execution will be a lot faster.
  • Just make sure you have different python versions available on your machine

Run single environment

tox -e py36

Less verbose

tox -q

More verbose

tox -v

@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.762% when pulling b88620a on gurupratap-matharu:tox into 6bb01af on data-8:master.

@davidwagner
Copy link
Member

Should there be a video? I didn't see it.

Copy link
Member

@adnanhemani adnanhemani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great - thanks!

@adnanhemani adnanhemani merged commit d1fbac0 into data-8:master Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants