{"id":40801,"library":"daspec-junit-xml-formatter","title":"DaSpec JUnit XML Formatter","description":"A JUnit XML result formatter for the DaSpec JS Node runner, enabling integration with CI servers that consume JUnit XML reports. Version 1.0.0 is the current stable release. It is maintained as part of the DaSpec ecosystem, with low release cadence. Differentiator: dedicated to DaSpec's BDD-style specs, unlike generic JUnit reporters.","status":"active","version":"1.0.0","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/daspec/daspec-js-junit-xml-formatter","tags":["javascript","daspec","test","tdd","bdd","specbyexample","junit-xml","junit"],"install":[{"cmd":"npm install daspec-junit-xml-formatter","lang":"bash","label":"npm"},{"cmd":"yarn add daspec-junit-xml-formatter","lang":"bash","label":"yarn"},{"cmd":"pnpm add daspec-junit-xml-formatter","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"DaSpec JS Node runner is required; this package is a formatter used with it.","package":"daspec","optional":true}],"imports":[{"note":"Package is CommonJS; no named exports; use require directly.","wrong":"const formatter = require('daspec-junit-xml-formatter').default","symbol":"default","correct":"require('daspec-junit-xml-formatter')"},{"note":"DaSpec expects a space between flag and value, not equals sign.","wrong":"daspec --junit-xml-file-name=custom-report.xml","symbol":"junit-xml-file-name","correct":"daspec --junit-xml-file-name custom-report.xml"},{"note":"Formatters must be an array, even if only one.","wrong":"\"formatters\": \"daspec-junit-xml-formatter\"","symbol":"formatters config","correct":"\"formatters\": [\"daspec-junit-xml-formatter\"] in daspec.json"}],"quickstart":{"code":"npm install daspec --save-dev && npm install daspec-junit-xml-formatter --save-dev && npx daspec --specs 'specs/**/*.md' --steps 'steps/**/*.js' --formatters daspec-junit-xml-formatter --output-dir ./reports","lang":"javascript","description":"Install DaSpec and the JUnit XML formatter, then run DaSpec with the formatter to generate JUnit XML reports."},"warnings":[{"fix":"Install daspec as a devDependency.","message":"The formatter requires the daspec package to be installed.","severity":"gotcha","affected_versions":"*"},{"fix":"Set junit-xml-file-name to just a filename without a path, or provide full path relative to cwd.","message":"If you specify a custom file name with a path, the output-dir setting is ignored.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use [\"daspec-junit-xml-formatter\"] not \"daspec-junit-xml-formatter\".","message":"The formatter config must be an array, not a string.","severity":"gotcha","affected_versions":"*"},{"fix":"Use --junit-xml-file-name filename, not --junit-xml-file-name=filename.","message":"Command-line flags must use space, not equals sign.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'1.0.0':27 'bdd':52,63 'bdd-style':51 'cadenc':45 'ci':19 'consum':22 'current':30 'daspec':1,12,40,49,60 'dedic':47 'differenti':46 'ecosystem':41 'enabl':16 'formatt':4,9 'generic':56 'integr':17 'javascript':59 'js':13 'junit':2,6,23,57,66,68 'junit-xml':65 'low':43 'maintain':35 'node':14 'part':37 'releas':32,44 'report':25,58 'result':8 'runner':15 'server':20 'spec':54 'specbyexampl':64 'stabl':31 'style':53 'tdd':62 'test':61 'unlik':55 'version':26 'xml':3,7,24,67","created_at":"2026-06-04T18:49:19.240774+00:00","updated_at":"2026-06-04T18:49:19.240774+00:00","problems":[{"fix":"npm install daspec --save-dev","cause":"daspec peer dependency not installed.","error":"Error: Cannot find module 'daspec'"},{"fix":"Create the output directory or set a different one that exists.","cause":"output-dir directory does not exist.","error":"ENOENT: no such file or directory, open '.../report.xml'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"http://daspec.com","github":"ssh://git@github.com/daspec/daspec-js-junit-xml-formatter","docs":null,"changelog":null,"pypi":null,"npm":"daspec-junit-xml-formatter","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}