This is a really simple package that wraps up the karma-junit-reporter and adds a number to the end of duplicate spec names.
The reason this exists is some CI platforms (i.e. Bamboo) report the number of tests incorrectly if there are duplicate tests.
Use it exactly the same as karma-junit-reporter
:
reporters: ['counting-junit'],
plugins: [
require('karma-dedup-junit-reporter')
]