Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14843914
D13698.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13698.diff
View Options
diff --git a/src/unit/engine/PytestTestEngine.php b/src/unit/engine/PytestTestEngine.php
--- a/src/unit/engine/PytestTestEngine.php
+++ b/src/unit/engine/PytestTestEngine.php
@@ -5,9 +5,11 @@
*/
final class PytestTestEngine extends ArcanistUnitTestEngine {
+ private $projectRoot;
+
public function run() {
$working_copy = $this->getWorkingCopy();
- $this->project_root = $working_copy->getProjectRoot();
+ $this->projectRoot = $working_copy->getProjectRoot();
$junit_tmp = new TempFile();
$cover_tmp = new TempFile();
@@ -25,7 +27,7 @@
}
$future = new ExecFuture('coverage xml -o %s', $cover_tmp);
- $future->setCWD($this->project_root);
+ $future->setCWD($this->projectRoot);
$future->resolvex();
return $this->parseTestResults($junit_tmp, $cover_tmp);
@@ -39,7 +41,7 @@
if ($this->getEnableCoverage() !== false) {
$cmd_line = csprintf(
'coverage run --source %s -m %C',
- $this->project_root,
+ $this->projectRoot,
$cmd_line);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 3, 11:15 AM (21 h, 27 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7086817
Default Alt Text
D13698.diff (1 KB)
Attached To
Mode
D13698: Add $projectRoot to PytestTestEngine
Attached
Detach File
Event Timeline
Log In to Comment