首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Pester & AzureAdPreview模块

Pester & AzureAdPreview模块
EN

Stack Overflow用户
提问于 2018-10-17 15:20:12
回答 1查看 65关注 0票数 0

当我通过Invoke-Pester调用所有测试(*.tests.ps1)时,验证某些基础组设置的系统测试失败。

错误是The term 'Get-AzureADObjectSetting' is not recognized as the name of a cmdlet, function, script file。此cmdlet通过模块AzureAdPreview提供。

当我用Invoke-Pester -Script ./GroupFoobar.tests.ps1运行相同的测试文件时,这个错误没有出现。

在某些情况下加载不同的Pester模块-我使用的是Pester版本4.0.4?

EN

回答 1

Stack Overflow用户

发布于 2018-10-18 13:06:47

好的,使用AzureAdPreview-Force开关解决了我的问题:

Import-Module Pester Import-Module AzureAdPreview -Force Import-Module Microsoft.Xrm.Data.Powershell ...

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52849301

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档