mirror of
https://github.com/dfinke/ImportExcel.git
synced 2026-01-10 04:23:36 +00:00
Fixes to tests to be run x-plaform
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user