Skip to content

Instantly share code, notes, and snippets.

@yattom
Created June 6, 2018 05:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yattom/aaf3cbcb191dbc117bf5a419b49c0caa to your computer and use it in GitHub Desktop.
Save yattom/aaf3cbcb191dbc117bf5a419b49c0caa to your computer and use it in GitHub Desktop.
[ec2-user@ip-172-30-0-209 ~]$ mkdir foo
[ec2-user@ip-172-30-0-209 ~]$ cd foo
[ec2-user@ip-172-30-0-209 foo]$ python3 -m venv .
[ec2-user@ip-172-30-0-209 foo]$ . bin/activate
(foo) [ec2-user@ip-172-30-0-209 foo]$ pip install pytest-testmon
Collecting pytest-testmon
Downloading https://files.pythonhosted.org/packages/04/71/0f7ff7772cfd96b5ac1627d1218e2568ce2a2cb6d40b8c7dede4f25d262a/pytest-testmon-0.9.11.tar.gz
Collecting pytest<4,>=2.8.0 (from pytest-testmon)
Downloading https://files.pythonhosted.org/packages/d3/75/e79b66c9fe6166a90004bb8fb02bab06213c3348e93f3be41d7eaf625554/pytest-3.6.1-py2.py3-none-any.whl (194kB)
100% |████████████████████████████████| 194kB 4.0MB/s
Collecting coverage>=4 (from pytest-testmon)
Downloading https://files.pythonhosted.org/packages/3d/a0/b12090c40e0b8196b973962ec71c1c541a6c04af58ba5ad85683b3de251a/coverage-4.5.1-cp36-cp36m-manylinux1_x86_64.whl (202kB)
100% |████████████████████████████████| 204kB 4.2MB/s
Collecting atomicwrites>=1.0 (from pytest<4,>=2.8.0->pytest-testmon)
Downloading https://files.pythonhosted.org/packages/0a/e8/cd6375e7a59664eeea9e1c77a766eeac0fc3083bb958c2b41ec46b95f29c/atomicwrites-1.1.5-py2.py3-none-any.whl
Collecting attrs>=17.4.0 (from pytest<4,>=2.8.0->pytest-testmon)
Downloading https://files.pythonhosted.org/packages/41/59/cedf87e91ed541be7957c501a92102f9cc6363c623a7666d69d51c78ac5b/attrs-18.1.0-py2.py3-none-any.whl
Collecting py>=1.5.0 (from pytest<4,>=2.8.0->pytest-testmon)
Downloading https://files.pythonhosted.org/packages/67/a5/f77982214dd4c8fd104b066f249adea2c49e25e8703d284382eb5e9ab35a/py-1.5.3-py2.py3-none-any.whl (84kB)
100% |████████████████████████████████| 92kB 7.2MB/s
Collecting pluggy<0.7,>=0.5 (from pytest<4,>=2.8.0->pytest-testmon)
Downloading https://files.pythonhosted.org/packages/ba/65/ded3bc40bbf8d887f262f150fbe1ae6637765b5c9534bd55690ed2c0b0f7/pluggy-0.6.0-py3-none-any.whl
Collecting six>=1.10.0 (from pytest<4,>=2.8.0->pytest-testmon)
Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in ./lib/python3.6/dist-packages (from pytest<4,>=2.8.0->pytest-testmon)
Collecting more-itertools>=4.0.0 (from pytest<4,>=2.8.0->pytest-testmon)
Downloading https://files.pythonhosted.org/packages/85/40/90c3b0393e12b9827381004224de8814686e3d7182f9d4182477f600826d/more_itertools-4.2.0-py3-none-any.whl (45kB)
100% |████████████████████████████████| 51kB 10.1MB/s
Installing collected packages: atomicwrites, attrs, py, pluggy, six, more-itertools, pytest, coverage, pytest-testmon
Running setup.py install for pytest-testmon ... done
Successfully installed atomicwrites-1.1.5 attrs-18.1.0 coverage-4.5.1 more-itertools-4.2.0 pluggy-0.6.0 py-1.5.3 pytest-3.6.1 pytest-testmon-0.9.11 six-1.11.0
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(foo) [ec2-user@ip-172-30-0-209 foo]$ cat > foo_test.py
def test_42():
assert 42 == 0
(foo) [ec2-user@ip-172-30-0-209 foo]$ pytest --testmon
============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.6.1, py-1.5.3, pluggy-0.6.0
testmon=True, changed files: 0, skipping collection of 0 files, run variant: default
rootdir: /home/ec2-user/foo, inifile:
plugins: testmon-0.9.11
collected 497 items
foo_test.py F [ 0%]
lib/python3.6/dist-packages/more_itertools/tests/test_more.py .......... [ 2%]
........................................................................ [ 16%]
........................................................................ [ 31%]
.................... [ 35%]
lib/python3.6/dist-packages/more_itertools/tests/test_recipes.py ....... [ 36%]
................................................................... [ 50%]
lib64/python3.6/dist-packages/more_itertools/tests/test_more.py ........ [ 51%]
........................................................................ [ 66%]
........................................................................ [ 80%]
...................... [ 85%]
lib64/python3.6/dist-packages/more_itertools/tests/test_recipes.py ..... [ 86%]
..................................................................... [100%]
=================================== FAILURES ===================================
___________________________________ test_42 ____________________________________
def test_42():
> assert 42 == 0
E assert 42 == 0
foo_test.py:2: AssertionError
===================== 1 failed, 496 passed in 5.33 seconds =====================
(foo) [ec2-user@ip-172-30-0-209 foo]$ cat > foo_test.py
def test_42():
assert 42 == 42 # changes here
(foo) [ec2-user@ip-172-30-0-209 foo]$ pytest --testmon
============================= test session starts ==============================
platform linux -- Python 3.6.5, pytest-3.6.1, py-1.5.3, pluggy-0.6.0
testmon=True, changed files: foo_test.py, skipping collection of 5 files, run variant: default
rootdir: /home/ec2-user/foo, inifile:
plugins: testmon-0.9.11
collected 1 item / 497 deselected
foo_test.py F
=================================== FAILURES ===================================
___________________________________ test_42 ____________________________________
def test_42():
> assert 42 == 0
E assert 42 == 0
foo_test.py:2: AssertionError
=================== 1 failed, 497 deselected in 0.47 seconds ===================
(foo) [ec2-user@ip-172-30-0-209 foo]$ cat foo_test.py
def test_42():
assert 42 == 42 # changes here
(foo) [ec2-user@ip-172-30-0-209 foo]$ pip freeze
atomicwrites==1.1.5
attrs==18.1.0
coverage==4.5.1
more-itertools==4.2.0
pluggy==0.6.0
py==1.5.3
pytest==3.6.1
pytest-testmon==0.9.11
six==1.11.0
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(foo) [ec2-user@ip-172-30-0-209 foo]$ exit
[ec2-user@ip-172-30-0-209 ~]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment