Fixes to tests to be run x-plaform

This commit is contained in:
jhoneill
2019-08-27 00:31:30 +01:00
parent 9abbe2983b
commit a783b9c8ca
19 changed files with 173 additions and 122 deletions

View File

@@ -8,20 +8,20 @@ Describe "Tests" {
}
}
It "Should have two items" {
It "Should have two items".PadRight(90) {
$data.count | Should be 2
}
It "Should have items a and b" {
It "Should have items a and b".PadRight(90) {
$data[0].p1 | Should be "a"
$data[1].p1 | Should be "b"
}
It "Should read fast < 2100 milliseconds" {
It "Should read fast < 2100 milliseconds".PadRight(90) {
$timer.TotalMilliseconds | should BeLessThan 2100
}
It "Should read larger xlsx, 4k rows 1 col < 3000 milliseconds" {
It "Should read larger xlsx, 4k rows 1 col < 3000 milliseconds".PadRight(90) {
$timer = Measure-Command {
$null = Import-Excel $PSScriptRoot\LargerFile.xlsx
}
@@ -29,7 +29,7 @@ Describe "Tests" {
$timer.TotalMilliseconds | should BeLessThan 3000
}
It "Should be able to open, read and close as seperate actions" {
It "Should be able to open, read and close as seperate actions".PadRight(90) {
$timer = Measure-Command {
$excel = Open-ExcelPackage $PSScriptRoot\Simple.xlsx
$data = Import-Excel -ExcelPackage $excel