Skip to content

Commit feaded6

Browse files
committed
add test
1 parent ba96e67 commit feaded6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/cli/other_test.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,17 @@ def test_progress_j(tmpdir):
195195
assert stdout == "Checking {} ...\n".format(test_file)
196196
assert stderr == ""
197197

198+
def test_progress_proj_j(tmpdir):
199+
args = ['--project=proj2/proj2.cppcheck', '-j2']
200+
201+
exitcode, stdout, stderr = cppcheck(args)
202+
203+
progress_lines = '\n'.join(list(filter(lambda l: not l.startswith("Checking"), stdout.split('\n'))))
204+
205+
assert (progress_lines ==
206+
"1/2 files checked 76% done\n"
207+
"2/2 files checked 100% done\n")
208+
assert exitcode == 0
198209

199210
def test_execute_addon_failure(tmpdir):
200211
test_file = os.path.join(tmpdir, 'test.cpp')

0 commit comments

Comments
 (0)