vfile-reporter-junit

7.1.0 • Public • Published

vfile-reporter-junit

npm version

jUnit reporter for VFile

Usage

const remark = require('remark');
const recommended = require('remark-preset-lint-recommended');
const vfileReporterJunit = require('vfile-reporter-junit');

let file = remark()
  .use(recommended)
  .processSync('## Hello world!')

console.log(await vfileReporterJunit([file]))
remark . --use preset-lint-recommended --report junit
<?xml version="1.0" encoding="utf-8"?>
<testsuites>
<testsuite package="org.eslint" time="0" tests="1" errors="1" name="undefined">
<testcase time="0" name="org.eslint.remark-lint:final-newline"><failure message="Missing newline character at end of file"><![CDATA[line 1, col 1, Warning - Missing newline character at end of file (remark-lint:final-newline)]]></failure></testcase>
</testsuite>
</testsuites>

Readme

Keywords

none

Package Sidebar

Install

npm i vfile-reporter-junit

Weekly Downloads

5

Version

7.1.0

License

MIT

Unpacked Size

3.64 kB

Total Files

4

Last publish

Collaborators

  • kellyselden