We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 794d37d + 51a91b9 commit 564ed95Copy full SHA for 564ed95
3 files changed
.travis.yml
@@ -6,8 +6,10 @@ python:
6
install:
7
- sudo apt-get update
8
- sudo apt-get install libboost-test-dev
9
- - sudo apt-get install libgtest-dev
10
- - "cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp *.a /usr/lib ; cd -"
+ - wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
+ - tar -zxvf release-1.8.0.tar.gz
11
+ - "cd googletest-release-1.8.0/googletest && cmake . && sudo make install; cd -"
12
+ - rm -rf googletest-release-1.8.0
13
- pip install tox coveralls
14
15
script:
tests/test_pytest_cpp.py
@@ -73,16 +73,16 @@ def test_google_failure(exes):
73
assert len(failures) == 2
74
colors = ('red', 'bold')
75
assert failures[0].get_lines() == [
76
- ('Value of: 5', colors),
77
- ('Expected: 2 * 3', colors),
78
- ('Which is: 6', colors),
+ (' Expected: 2 * 3', colors),
+ (' Which is: 6', colors),
+ ('To be equal to: 5', colors),
79
]
80
assert failures[0].get_file_reference() == ('gtest.cpp', 17)
81
82
assert failures[1].get_lines() == [
83
- ('Value of: 15', colors),
84
- ('Expected: 2 * 6', colors),
85
- ('Which is: 12', colors),
+ (' Expected: 2 * 6', colors),
+ (' Which is: 12', colors),
+ ('To be equal to: 15', colors),
86
87
assert failures[1].get_file_reference() == ('gtest.cpp', 18)
88
tox.ini
@@ -8,4 +8,4 @@ deps=pytest
coverage
commands=
coverage run --source=pytest_cpp .pytest.py
- py.test -n8
+ py.test -n8 tests
0 commit comments