Конфигурация
Примеры настройки
- Testplane
- Playwright
- Jest
testplane.config.ts
export = {
// ...
plugins: {
'html-reporter/testplane': {
enabled: true,
path: 'html-report',
},
},
};
playwright.config.ts
// playwright.config.ts
export default defineConfig({
// ...
reporter: [
['html-reporter/playwright', {
enabled: true,
defaultView: 'failed',
path: 'html-report',
}],
],
});
jest.config.ts
const config = {
// ...
reporters: [
'html-reporter/jest', // Подключаем наш репортер
'default' // Встроенный репортер Jest или любые другие необходимые (опционально)
],
};
Если нужно передать параметры конфигурации, можно сделать так:
jest.config.ts
const config = {
// ...
reporters: [
['html-reporter/jest', {
path: 'html-report',
}]
],
};
warning
Если вы используете jest@27 или ниже, нужно указать следующий путь:
html-reporter/build/jest.