
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
test-unit-runner-junitxml
Advanced tools
[日本語]
Test::Unit::Runner::JUnitXml is a test-unit runner that reports test result in JUnit XML format.
$ gem install test-unit-runner-junitxml
By loading test/unit/runner/junitxml.rb
, you can select junitxml
runner via the --runner
command line option of test script. This runner reports test result in JUnit XML format.
In addition, --junitxml-output-file
command line option is added, and it becomes possible to output the test result to the file specified by this option.
# test.rb
require "test/unit/runner/junitxml"
class MyTest < Test::Unit::TestCase
def test_1
print("hello")
assert_equal(1, 2)
end
end
$ ruby test.rb --runner=junitxml --junitxml-output-file=result.xml
$ cat result.xml
<?xml version="1.0" encoding="UTF-8" ?>
<testsuites>
<testsuite name="MyTest" tests="1" errors="0" failures="1" skipped="0" time="0.0037614">
<testcase classname="MyTest" name="test_1(MyTest)" file="test.rb" time="0.0036311" assertions="1">
<failure message="<1> expected but was
<2>.">Failure:
test_1(MyTest) [test.rb:7]:
<1> expected but was
<2>.</failure>
<system-out>hello</system-out>
</testcase>
</testsuite>
</testsuites>
FAQs
Unknown package
We found that test-unit-runner-junitxml demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.