Skip to content

Commit

Permalink
Add features to allow unit testing on simulator
Browse files Browse the repository at this point in the history
* InstalliOSApplication
* UninstalliOSApplication
* LaunchiOSApplication
* TestiOSApplication
  • Loading branch information
sushihangover committed Dec 11, 2016
1 parent 38475d4 commit 3008989
Show file tree
Hide file tree
Showing 32 changed files with 1,291 additions and 61 deletions.
Empty file modified build.sh
100644 → 100755
Empty file.
51 changes: 23 additions & 28 deletions src/Cake.AppleSimulator.Tests/Cake.AppleSimulator.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Cake.Core, Version=0.14.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Cake.Core.0.14.0\lib\net45\Cake.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Cake.Testing, Version=0.14.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Cake.Testing.0.14.0\lib\net45\Cake.Testing.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FluentAssertions, Version=4.9.1.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
<HintPath>..\packages\FluentAssertions.4.9.1\lib\net45\FluentAssertions.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="FluentAssertions.Core, Version=4.9.1.0, Culture=neutral, PublicKeyToken=33f2691a05b67b6a, processorArchitecture=MSIL">
<HintPath>..\packages\FluentAssertions.4.9.1\lib\net45\FluentAssertions.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
Expand All @@ -65,21 +49,29 @@
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
<HintPath>..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll</HintPath>
<Private>True</Private>
<Reference Include="Cake.Core">
<HintPath>..\packages\Cake.Core.0.17.0\lib\net45\Cake.Core.dll</HintPath>
</Reference>
<Reference Include="xunit.assert, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
<HintPath>..\packages\xunit.assert.2.1.0\lib\dotnet\xunit.assert.dll</HintPath>
<Private>True</Private>
<Reference Include="xunit.abstractions">
<HintPath>..\packages\xunit.abstractions.2.0.1\lib\net35\xunit.abstractions.dll</HintPath>
</Reference>
<Reference Include="xunit.core, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
<HintPath>..\packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll</HintPath>
<Private>True</Private>
<Reference Include="xunit.assert">
<HintPath>..\packages\xunit.assert.2.2.0-beta4-build3444\lib\netstandard1.0\xunit.assert.dll</HintPath>
</Reference>
<Reference Include="xunit.execution.desktop, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
<HintPath>..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll</HintPath>
<Private>True</Private>
<Reference Include="xunit.core">
<HintPath>..\packages\xunit.extensibility.core.2.2.0-beta4-build3444\lib\net45\xunit.core.dll</HintPath>
</Reference>
<Reference Include="xunit.execution.desktop">
<HintPath>..\packages\xunit.extensibility.execution.2.2.0-beta4-build3444\lib\net45\xunit.execution.desktop.dll</HintPath>
</Reference>
<Reference Include="Cake.Testing">
<HintPath>..\packages\Cake.Testing.0.17.0\lib\net45\Cake.Testing.dll</HintPath>
</Reference>
<Reference Include="FluentAssertions.Core">
<HintPath>..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.Core.dll</HintPath>
</Reference>
<Reference Include="FluentAssertions">
<HintPath>..\packages\FluentAssertions.4.18.0\lib\net45\FluentAssertions.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand All @@ -99,6 +91,9 @@
<None Include="Fixtures\SimCtlListDevices.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<Compile Include="Fixtures\XCRunFixture.cs" />
<Compile Include="Fixtures\XCRunFindSImCrlFxture.cs" />
<Compile Include="Unit\XCRunTests.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Fixtures\SimCtlListPairs.json">
Expand Down
18 changes: 9 additions & 9 deletions src/Cake.AppleSimulator.Tests/packages.config
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Cake.Core" version="0.14.0" targetFramework="net452" />
<package id="Cake.Testing" version="0.14.0" targetFramework="net452" />
<package id="FluentAssertions" version="4.9.1" targetFramework="net452" />
<package id="Cake.Core" version="0.17.0" targetFramework="net452" />
<package id="Cake.Testing" version="0.17.0" targetFramework="net452" />
<package id="FluentAssertions" version="4.18.0" targetFramework="net452" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net452" />
<package id="NSubstitute" version="1.10.0.0" targetFramework="net452" />
<package id="xunit" version="2.1.0" targetFramework="net452" />
<package id="xunit.abstractions" version="2.0.0" targetFramework="net452" />
<package id="xunit.assert" version="2.1.0" targetFramework="net452" />
<package id="xunit.core" version="2.1.0" targetFramework="net452" />
<package id="xunit.extensibility.core" version="2.1.0" targetFramework="net452" />
<package id="xunit.extensibility.execution" version="2.1.0" targetFramework="net452" />
<package id="xunit" version="2.2.0-beta4-build3444" targetFramework="net452" />
<package id="xunit.abstractions" version="2.0.1" targetFramework="net452" />
<package id="xunit.assert" version="2.2.0-beta4-build3444" targetFramework="net452" />
<package id="xunit.core" version="2.2.0-beta4-build3444" targetFramework="net452" />
<package id="xunit.extensibility.core" version="2.2.0-beta4-build3444" targetFramework="net452" />
<package id="xunit.extensibility.execution" version="2.2.0-beta4-build3444" targetFramework="net452" />
<package id="xunit.runner.visualstudio" version="2.1.0" targetFramework="net452" />
</packages>
83 changes: 83 additions & 0 deletions src/Cake.AppleSimulator.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,105 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppleSimulator", "Cake
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cake.AppleSimulator.Tests", "Cake.AppleSimulator.Tests\Cake.AppleSimulator.Tests.csproj", "{9DC10E93-A002-40BB-8044-D38C9E7568DF}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OnDeviceTestApps", "OnDeviceTestApps", "{8A410502-D0A5-48E6-AB23-76B82FA05406}"
EndProject
Project("{9344BDBB-3E7F-41FC-A0DD-8665D75EE146}") = "Test.NUnit", "Test.NUnit\Test.NUnit.csproj", "{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}"
EndProject
Project("{9344BDBB-3E7F-41FC-A0DD-8665D75EE146}") = "Test.xUnit", "Test.xUnit\Test.xUnit.csproj", "{0713DE2F-43A0-48B0-8254-34E3CE9E3143}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
Debug|iPhone = Debug|iPhone
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B06F9D18-B527-480E-BA34-DD10644E2832}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Release|Any CPU.Build.0 = Release|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Release|iPhone.ActiveCfg = Release|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Release|iPhone.Build.0 = Release|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{B06F9D18-B527-480E-BA34-DD10644E2832}.Debug|iPhone.Build.0 = Debug|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Release|Any CPU.Build.0 = Release|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Release|iPhone.ActiveCfg = Release|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Release|iPhone.Build.0 = Release|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{9DC10E93-A002-40BB-8044-D38C9E7568DF}.Debug|iPhone.Build.0 = Debug|Any CPU
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Release|Any CPU.ActiveCfg = Release|iPhone
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Release|Any CPU.Build.0 = Release|iPhone
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Release|iPhone.ActiveCfg = Release|iPhone
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Release|iPhone.Build.0 = Release|iPhone
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Debug|iPhone.ActiveCfg = Debug|iPhone
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45}.Debug|iPhone.Build.0 = Debug|iPhone
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Release|Any CPU.ActiveCfg = Release|iPhone
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Release|Any CPU.Build.0 = Release|iPhone
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Release|iPhone.ActiveCfg = Release|iPhone
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Release|iPhone.Build.0 = Release|iPhone
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Debug|iPhone.ActiveCfg = Debug|iPhone
{0713DE2F-43A0-48B0-8254-34E3CE9E3143}.Debug|iPhone.Build.0 = Debug|iPhone
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{3A737D9D-BD84-488F-AC88-E8FE4FE1EF45} = {8A410502-D0A5-48E6-AB23-76B82FA05406}
{0713DE2F-43A0-48B0-8254-34E3CE9E3143} = {8A410502-D0A5-48E6-AB23-76B82FA05406}
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
Policies = $0
$0.TextStylePolicy = $1
$1.FileWidth = 120
$1.inheritsSet = VisualStudio
$1.inheritsScope = text/plain
$1.scope = text/x-csharp
$0.CSharpFormattingPolicy = $2
$2.IndentSwitchSection = True
$2.NewLinesForBracesInProperties = True
$2.NewLinesForBracesInAccessors = True
$2.NewLinesForBracesInAnonymousMethods = True
$2.NewLinesForBracesInControlBlocks = True
$2.NewLinesForBracesInAnonymousTypes = True
$2.NewLinesForBracesInObjectCollectionArrayInitializers = True
$2.NewLinesForBracesInLambdaExpressionBody = True
$2.NewLineForElse = True
$2.NewLineForCatch = True
$2.NewLineForFinally = True
$2.NewLineForMembersInObjectInit = True
$2.NewLineForMembersInAnonymousTypes = True
$2.NewLineForClausesInQuery = True
$2.SpacingAfterMethodDeclarationName = False
$2.SpaceAfterMethodCallName = False
$2.SpaceBeforeOpenSquareBracket = False
$2.inheritsSet = Mono
$2.inheritsScope = text/x-csharp
$2.scope = text/x-csharp
EndGlobalSection
EndGlobal
Loading

0 comments on commit 3008989

Please sign in to comment.