Releases: AriPerkkio/vitest-sonar-reporter
Releases Β· AriPerkkio/vitest-sonar-reporter
v2.0.0
The old sonarReporterOptions.silent
is no longer supported. Use custom reporter options instead:
export default defineConfig({
test: {
- reporters: 'vitest-sonar-reporter',
- sonarReporterOptions: { silent: true }
+ reporters: ['vitest-sonar-reporter', { silent: true }],
},
});
What's Changed
- fix!: remove
sonarReporterOptions.silent
option by @AriPerkkio in #165 - ci: release transparency details added: https://www.npmjs.com/package/vitest-sonar-reporter#provenance
Full Changelog: v1.1.0...v2.0.0
v1.1.0 - custom options support
This release adds support for passing custom reporter options. See vitest-dev/vitest#5111 for more information about Vitest's new reporter API. There's also new onWritePath
option that can be used to rewrite <file>
element's path
attributes.
Custom options
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
reporters: [
"default",
["vitest-sonar-reporter", { outputFile: "sonar-report.xml", silent: true }],
"junit",
],
},
});
onWritePath
option
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
reporters: [
['vitest-sonar-reporter', {
onWritePath(path: string) {
console.log(path);
// ^^^^ "test/fixtures/animals.test.ts"
return `custom-prefix/${path}`;
}
}],
],
},
});
<testExecutions version="1">
- <file path="test/fixtures/animals.test.ts">
+ <file path="custom-prefix/test/fixtures/animals.test.ts">
<testCase name="animals - dogs say woof" duration="123" />
</file>
</testExecutions>
What's Changed
- feat: support custom options by @AriPerkkio in #160
- feat: add support for rewriting
<file path="...">
attributes by @AriPerkkio in #154
Full Changelog: v1.0.0...v1.1.0
v1.0.0 - Support Vitest 1.0
Adds support for vitest@1.0.0
π
What's Changed
- feat: prepare v1 release by @AriPerkkio in #136
Full Changelog: v0.5.0...v1.0.0
v0.5.0 - Support vitest@1.0.0-beta.3
What's Changed
- feat: support vitest v1.0.0-beta.3 by @AriPerkkio in #126
Full Changelog: v0.4.1...v0.5.0
v0.4.1 - Workspace support fixed
What's Changed
- fix: workspace support by @AriPerkkio in #78
Example of Vitest Workspace usage
Full Changelog: v0.4.0...v0.4.1
v0.4.0
What's Changed
- feat: option to silence logging by @AriPerkkio in #64
Full Changelog: v0.3.5...v0.4.0