Skip to content

Commit 3cf64fa

Browse files
committed
20221113 update : add test.ps1.
1 parent 44a5557 commit 3cf64fa

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test.ps1

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Write-Host "Start Aspose.Cells Cloud SDK for GO"
2+
$StartTime = Get-Date
3+
4+
[string[]]$lines = go test -v --timeout 50m
5+
$passed = 0
6+
$total =0
7+
foreach( $line in $lines)
8+
{
9+
if(($line -match "=== RUN"))
10+
{
11+
$total++
12+
}
13+
if(($line -match "--- PASS") )
14+
{
15+
$passed++
16+
}
17+
}
18+
$failed = $total - $passed
19+
$EndTime = Get-Date
20+
$timespan ="{0:N2}" -f (New-TimeSpan $StartTime $EndTime).TotalSeconds
21+
Write-Host "Spent ${timespan}s on finishing test. Result : Total ${total}, Passed ${passed} , Failed ${failed} ."
22+

0 commit comments

Comments
 (0)