
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
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 new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.