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

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

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