Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.1 KB

CONTRIBUTE.rst

File metadata and controls

46 lines (29 loc) · 1.1 KB

Finding areas to contribute

Eventually, all the CPython tests should pass under x-python. You can add CPython tests until some of them fail, and then you've found a bug!

Tests

I use pyenv as my virtual environments to run tests. I also have a GNU Makefile to run tests so I don't have to remember the idiosyncracies of each programming language environment. (But if you want to remember this stuff that works too.

make check

If you have all Python versions supported, then you can run:

::

make check-all

However there is a cooler version of GNU make called remake that works here as well.

x-python can also use tox to run the test suite under both the various Python versions support. Tox will create a virtualenv for each Python verison. Here are some useful tox commands.

General construction:

tox [args to tox] -- [args to nosetests]

Running only one version of Python with tox:

tox -e py34
tox -e py35

Running one test with tox:

tox -- tests.test_file:TestClass.test_name
tox -e py34 -- -s tests.test_file:TestClass.test_name