Support python coverage test.#649
Conversation
|
@robinw0928 You will need to close this and re-open against |
| + [str(test_path)] | ||
| ) | ||
| else: | ||
| cmd = [str(config.legate_path), str(test_path)] |
There was a problem hiding this comment.
Also when you do move this to the legate repo, please change this to leave cmd the way it is. Construct the cov args in a method self.cov_args, similar to stage, file args, etc. and then add them to cmd in the line just below in the same way. Then there can be a test added to verify that cov_args are being constructed correctly.
|
@robinw0928 #627 has been merged |
|
@robinw0928 I see you have submitted nv-legate/legate#431 I will go ahead and close this PR |
If we specify --cov_bin, it will run legate command with "coverage run". coverage here is a python module which measures python source code coverage.
e.g.:
./test.py --use=cuda --cov_bin /home/robinw/miniconda3/envs/legate/bin/coverage --cov_src_path /home/robinw/legate/cunumeric/cunumeric --debug --verbose
If we don't specify --cov_bin, it will run legate command without "coverage run" as before.
./test.py --use=cuda --debug --verbose