caolan / caolan/nodeunit

Reporter files should be named according template or name inside file

Open
#263 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

We have a test directory including many folders that follow the same naming pattern. So each folder contains an indexTest.js.

When running nodeunit on the complete directory with the junit reporter the report always gets the name of the file as .xml file. This results in an overwrite of the file each time, thus missing results of all the other tests with the same name.

It would be nice if we can specify a template for the outputted file or that we can specify the name in the test file itsef, e.g. by using module.name.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the nodeunit JUnit reporter and how it derives output filenames when processing a complete test directory. Compare the requested template-based naming with naming supplied inside a test file; done means reports from same-named files no longer overwrite each other and the chosen naming behavior is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.