mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
23 lines
614 B
Python
23 lines
614 B
Python
|
import os.path
|
||
|
|
||
|
from nose2.tests._common import FunctionalTestCase
|
||
|
|
||
|
|
||
|
class TestCoverage(FunctionalTestCase):
|
||
|
def test_run(self):
|
||
|
proc = self.runIn(
|
||
|
'scenario/test_with_module',
|
||
|
'-v',
|
||
|
'--with-coverage',
|
||
|
'--coverage=lib/'
|
||
|
)
|
||
|
STATS = ' 8 5 38%'
|
||
|
|
||
|
stdout, stderr = proc.communicate()
|
||
|
self.assertTestRunOutputMatches(
|
||
|
proc,
|
||
|
stderr=os.path.join('lib', 'mod1').replace('\\', r'\\') + STATS)
|
||
|
self.assertTestRunOutputMatches(
|
||
|
proc,
|
||
|
stderr='TOTAL ' + STATS)
|