forked from OneGet/NuGetProvider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmoketest.tests.ps1
35 lines (26 loc) · 1.01 KB
/
smoketest.tests.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Describe "Smoke testing" -Tags "Feature" {
BeforeAll{
Register-PackageSource -Name Nugettest -provider NuGet -Location https://www.nuget.org/api/v2 -force
}
it "EXPECTED: Find a package" {
$a = Find-Package -ProviderName NuGet -Name jquery -source Nugettest
$a.Name -contains "jquery" | should be $true
}
it "EXPECTED: Install a package" {
$a = install-Package -ProviderName NuGet -Name jquery -force -source Nugettest
$a.Name -contains "jquery" | should be $true
}
it "EXPECTED: Get a package" {
$a = Get-Package -ProviderName NuGet -Name jquery
$a.Name -contains "jquery" | should be $true
}
it "EXPECTED: save a package" {
$a = save-Package -ProviderName NuGet -Name jquery -path $TestDrive -force -source Nugettest
$a.Name -contains "jquery" | should be $true
}
it "EXPECTED: uninstall a package" {
$a = uninstall-Package -ProviderName NuGet -Name jquery
$a.Name -contains "jquery" | should be $true
}
}