protractor - 自定义 mocha-bamboo-reporter 以包含测试文件名
问题描述
我正在尝试在量角器测试中自定义mocha-bamboo-reporter
https://www.npmjs.com/package/mocha-bamboo-reporter以包含一个名为 的字段file
,其中包括竹报告中的测试文件名。
摩卡竹记者
var o = {
title: test.title
, fullTitle: test.fullTitle()
, duration: test.duration
, file: test.file // this is the new change
};
当我在本地运行测试时,生成mocha.json
的包含file
我想要的信息。
摩卡.json
{
"title": "should show login form",
"fullTitle": " Home Page should show login form",
"duration": 300,
"file": "xxx/tests/directory-name/test.js"
},
在 Bamboo 中,我有一个Mocha Test Parser
构建任务mocha.json
,但在竹子报告file
中从未包含,只有title
,fullTitle
等duration
。我需要做什么才能显示此信息?我需要包括一些东西mochaBambooReporterReporterOptions
吗?
竹构建任务
解决方案
推荐阅读
- reactjs - 使用 Cloud Foundry 部署 React 应用程序时,我的用户无法看到更改,除非他们删除浏览器数据
- android-studio - 如何使用当前的 Android Studio (3.5.3) 创建资产文件夹?
- c++ - 为什么即使条件不满足,编译器也会再次执行while循环?
- java - 为什么我的 IntelliJ IDEA 每次运行时都会显示致命错误?
- java - JavaFX 3D - 是否可以在 DrawMode.Line 中更改 Line 的宽度?
- java - 使用 Spring Boot 将 @WebInitParam 中的值外部化
- c++ - 没有非免费且没有 gpl 的 FFMPEG 编译无法正常工作
- python - 当可能发生多个相同类型的异常时如何正确处理异常
- sapui5 - ComboBox 值未显示在 XML 视图中
- php - Laravel:当值与上一个值不同时如何移动新行,刀片中的foreach