Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F159450
RspecUnitTestEngine.php
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
avivey
May 23 2014, 8:55 PM
2014-05-23 20:55:44 (UTC+0)
Size
542 B
Referenced Files
None
Subscribers
None
RspecUnitTestEngine.php
View Options
<?php
/**
* Very basic 'rspec' unit test engine wrapper.
*
* @group unitrun
*/
final
class
RspecUnitTestEngine
extends
ArcanistBaseUnitTestEngine
{
public
function
run
()
{
$tmp_file
=
new
TempFile
();
$cmd_line
=
csprintf
(
"bundle exec rspec --failure-exit-code 0 -r yarjuf -f JUnit -o ${tmp_file}"
);
$future
=
new
ExecFuture
(
'%C'
,
$cmd_line
);
list
(
$stdout
,
$stderr
)
=
$future
->
resolvex
();
$parser
=
new
ArcanistXUnitTestResultParser
();
return
$parser
->
parseTestResults
(
Filesystem
::
readFile
(
$tmp_file
));
}
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/pd/zi/duzowyyf7fu6kvzi
Default Alt Text
RspecUnitTestEngine.php (542 B)
Attached To
Mode
P1163 RspecUnitTestEngine.php
Attached
Detach File
Event Timeline
Log In to Comment