Skip to content

Commit

Permalink
Give mozci the ability to run python setup.py test to run tests (mo…
Browse files Browse the repository at this point in the history
…zilla#463)

Up until now, the best way to run tests and work on them was to run tox
once, active its virtualenv and then start making changes to the
tests and run pytest.

With these changes you can now run `python setup.py test` inside of a
virtualenv and it will get all the packages you need plus all the
packages required to run the tests.

In other words, you don't need to run tox to run the tests. However,
we will keep tox since it allows for multiple configurations and it fits
well with the Travis automation jobs.
  • Loading branch information
armenzg committed Apr 18, 2016
1 parent 16c343c commit 33894c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[aliases]
test=pytest
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
name='mozci',
version='0.32.1',
packages=find_packages(),
install_requires=required,
install_requires=required + ['pytest-runner'],
tests_require=required + ['mock', 'pytest'],

# Meta-data for upload to PyPI
author='Armen Zambrano G.',
Expand Down

0 comments on commit 33894c2

Please sign in to comment.