Skip to content

Commit 6be05e2

Browse files
committed
Update code examples and screenshot. Run things with pip3.
1 parent a7b0732 commit 6be05e2

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.travis.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ matrix:
2828
#- pip_pypy3 install virtualenv
2929
#- sleep 1
3030
install:
31-
- "pip install --user $USER ."
32-
- "pip install --user $USER virtualenv"
33-
- "pip install --user $USER coveralls"
31+
- "pip3 install --user $USER ."
32+
- "pip3 install --user $USER virtualenv"
33+
- "pip3 install --user $USER coveralls"
3434
- os: osx
3535
osx_image: xcode9.4
3636
language: generic
@@ -48,9 +48,9 @@ matrix:
4848
#- pip_pypy3 install virtualenv
4949
#- sleep 1
5050
install:
51-
- "pip install --user $USER ."
52-
- "pip install --user $USER virtualenv"
53-
- "pip install --user $USER coveralls"
51+
- "pip3 install --user $USER ."
52+
- "pip3 install --user $USER virtualenv"
53+
- "pip3 install --user $USER coveralls"
5454
- os: linux
5555
python: 3.5
5656
language: python

README.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -396,26 +396,29 @@ To run the unittests, we would change to the parent directory of the project
396396

397397
$ green proj
398398
....
399-
Ran 4 tests in 0.000s
400-
399+
400+
Ran 4 tests in 0.125s using 8 processes
401+
401402
OK (passes=4)
402403

403404
Okay, so that's the classic short-form output for unit tests. Green really
404405
shines when you start getting more verbose:
405406

406407
**In a real terminal, this output is syntax highlighted**
407408

408-
$ green -vv proj
409-
proj.test.test_foo
409+
$ green -vvv proj
410+
Green 3.0.0, Coverage 4.5.2, Python 3.7.4
411+
412+
test_foo
410413
TestAnswer
411414
. answer() returns 42
412415
. answer() returns an integer
413416
TestSchool
414417
. test_age
415418
. test_food
416-
417-
Ran 4 tests in 0.001s
418-
419+
420+
Ran 4 tests in 0.123s using 8 processes
421+
419422
OK (passes=4)
420423

421424
Notes:

img/screenshot.png

357 KB
Loading

0 commit comments

Comments
 (0)