提交 13a48e85 编写于 作者: 杜庆泉's avatar 杜庆泉

自动化测试入口区分 android/ios

上级 fdaa7104
import { Matchers,NumberMatchers } from './Matchers.uts' import { Matchers,NumberMatchers } from './Matchers.uts'
export const describes = new Map<string, Result>() export const describes = new Map<string, Result>()
// #ifndef APP-IOS
export class Result implements IJsonStringify { export class Result implements IJsonStringify {
total = 0 total = 0
passed: string[] = [] passed: string[] = []
failed: string[] = [] failed: string[] = []
override toJSON():any|null{ toJSON():any|null{
let jsonRet = { let jsonRet = {
'total': this.total, 'total': this.total,
'passed': JSON.stringify(this.passed), 'passed': JSON.stringify(this.passed),
'failed': JSON.stringify(this.failed), 'failed': JSON.stringify(this.failed),
} }
return jsonRet return jsonRet
} }
}
// #endif
// #ifdef APP-IOS
export class Result {
total = 0
passed: string[] = []
failed: string[] = []
} }
// #endif
let result: Result = new Result() let result: Result = new Result()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册