本文整理汇总了TypeScript中azure-pipelines-task-lib/mock-test.MockTestRunner.ran方法的典型用法代码示例。如果您正苦于以下问题:TypeScript MockTestRunner.ran方法的具体用法?TypeScript MockTestRunner.ran怎么用?TypeScript MockTestRunner.ran使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类azure-pipelines-task-lib/mock-test.MockTestRunner
的用法示例。
在下文中一共展示了MockTestRunner.ran方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it('Task defaults - v4.127.0', function (done: MochaDone) {
this.timeout(1000);
let tp = path.join(__dirname, 'L0TaskDefaults_4.127.0.js');
let tr: ttm.MockTestRunner = new ttm.MockTestRunner(tp);
tr.run();
//scheme
assert(tr.ran('/home/bin/xcodebuild -workspace /user/build/fun.xcodeproj/project.xcworkspace -list'),
'xcodebuild for listing schemes should have been run.');
//version
assert(tr.ran('/home/bin/xcodebuild -version'),
'xcodebuild for version should have been run.');
//build
assert(tr.ran('/home/bin/xcodebuild -sdk $(SDK) -configuration $(Configuration) ' +
'-workspace /user/build/fun.xcodeproj/project.xcworkspace -scheme funScheme build ' +
'CODE_SIGNING_ALLOWED=NO'),
'xcodebuild for building the ios project/workspace should have been run.');
assert(tr.invokedToolCount == 3, 'should have run xcodebuild for scheme list, version and build.');
assert(tr.stderr.length === 0, 'should not have written to stderr');
assert(tr.succeeded, 'task should have succeeded');
done();
});