Skip to content

Commit a30128d

Browse files
committed
Add Python3 module for nose tests coverage
And don't capture stdout running unit tests
1 parent ee14235 commit a30128d

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ addons:
8181
- cmake
8282
- swig
8383
- python3-dev
84-
- python3-nose
8584
- python3
85+
- python3-nose
86+
- python3-coverage
8687
- freeglut3-dev
8788

8889
cache:

test/pyTest/testOffset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ def testRewrapVideoNegativeOffset():
257257
dst_videoStream = dst_properties.getVideoProperties()[0]
258258

259259
# check output duration
260+
print "Source duration", src_videoStream.getDuration()
261+
print "Destination duration", dst_videoStream.getDuration()
260262
assert_equals( src_videoStream.getDuration() + offset, dst_videoStream.getDuration() )
261263
assert_equals( src_videoStream.getNbFrames() + ( offset * dst_videoStream.getFps() ), dst_videoStream.getNbFrames() )
262264

tools/travis/python.nosetests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ export AVTRANSCODER_TEST_IMAGE_PNG_FILE=`pwd`/avTranscoder-data/image/BigBuckBun
2020
export AVTRANSCODER_TEST_IMAGE_JPG_FILE=`pwd`/avTranscoder-data/image/BigBuckBunny/title_anouncement.thumbnail.jpg
2121

2222
# Launch tests
23-
nosetests3 -w ${TRAVIS_BUILD_DIR}/test/pyTest --with-coverage > progress.txt
23+
nosetests3 -w ${TRAVIS_BUILD_DIR}/test/pyTest --with-coverage --nocapture > progress.txt

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy