Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12661633
PytestTestEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
530 B
Referenced Files
None
Subscribers
None
PytestTestEngine.php
View Options
<?php
/**
* Very basic 'py.test' unit test engine wrapper.
*
* @group unitrun
*/
final
class
PytestTestEngine
extends
ArcanistBaseUnitTestEngine
{
public
function
run
()
{
$junit_tmp
=
new
TempFile
();
$cmd_line
=
csprintf
(
'py.test --junitxml=%s'
,
$junit_tmp
);
$future
=
new
ExecFuture
(
'%C'
,
$cmd_line
);
list
(
$stdout
,
$stderr
)
=
$future
->
resolvex
();
$parser
=
new
ArcanistXUnitTestResultParser
();
return
$parser
->
parseTestResults
(
Filesystem
::
readFile
(
$junit_tmp
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 28, 15:47 (20 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1083472
Default Alt Text
PytestTestEngine.php (530 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment