Files
runner-images/images/win/scripts/Tests/BizTalk.Tests.ps1
Elvis Shi 3a7123ebeb Add BizTalk Server project build component to build agent machine. (#1960)
* Add BizTalk Project Build components, including msi and vsix.

* Add BizTalk Build Components to software report.

* Use registry/folder check replace actually BizTalk Project building for testing purpose.

* Remove unnecessary try/catch.

* Make sure BizTalk related software report only for Windows 2019 OS.

* Add statement to make sure BizTalk test only invoked in Win19 env.

* Fix test failue when no test runs use "skip"

* Update the TestName to be identity to BizTalk.Test.ps1
2020-11-24 19:20:02 +03:00

19 lines
809 B
PowerShell

################################################################################
## File: BizTalk.Tests.ps1
## Desc: Test BizTalk project build component installed.
################################################################################
Describe "BizTalk Build Component Setup" -Skip:(Test-IsWin16) {
It "BizTalk Registry Check" {
Test-Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\BizTalk Server\3.0" | Should -BeTrue
}
It "BizTalk Folder Check" {
"${env:ProgramFiles(x86)}\Microsoft BizTalk Server" | Should -Exist
}
It "BizTalk Build Targets files Check" {
"${env:ProgramFiles(x86)}\MSBuild\Microsoft\BizTalk\BizTalkC.targets" | Should -Exist
"${env:ProgramFiles(x86)}\MSBuild\Microsoft\BizTalk\BizTalkCommon.targets" | Should -Exist
}
}