|
@@ -6,6 +6,7 @@ const dayjs = require("dayjs");
|
|
|
* @typedef {Object} FunctionalTestSerializerType
|
|
* @typedef {Object} FunctionalTestSerializerType
|
|
|
* @property {number} id 代码作业一次功能测试的 id
|
|
* @property {number} id 代码作业一次功能测试的 id
|
|
|
* @property {number} time 测试时间
|
|
* @property {number} time 测试时间
|
|
|
|
|
+ * @property {boolean} isPassAll 是否全部通过
|
|
|
* @property {string|number} deployId 对应的部署 id
|
|
* @property {string|number} deployId 对应的部署 id
|
|
|
* @property {OneFunctionalTestSerializerType[]} detail 所有测试用例列表
|
|
* @property {OneFunctionalTestSerializerType[]} detail 所有测试用例列表
|
|
|
*/
|
|
*/
|
|
@@ -37,6 +38,7 @@ module.exports = ({ id = makeId(), deployId = makeId() }) => {
|
|
|
id,
|
|
id,
|
|
|
time: dayjs("2018-9-21").unix(),
|
|
time: dayjs("2018-9-21").unix(),
|
|
|
deployId,
|
|
deployId,
|
|
|
|
|
+ isPassAll: id % 2 === 1,
|
|
|
detail: [
|
|
detail: [
|
|
|
getOneFunctionalTestSerializer(),
|
|
getOneFunctionalTestSerializer(),
|
|
|
getOneFunctionalTestSerializer(),
|
|
getOneFunctionalTestSerializer(),
|