Skip to content

Commit

Permalink
Updated to use NuGet package instead of some file templates
Browse files Browse the repository at this point in the history
  • Loading branch information
MatisseHack committed Feb 7, 2017
1 parent 1f6f96a commit 4caaae8
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 186 deletions.
7 changes: 6 additions & 1 deletion UITestPOPAddin/FileTemplates/PageFileTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ namespace ${Namespace}
{
public class ${Name} : BasePage
{
protected override PlatformQuery Trait => new PlatformQuery
{
Android = null,
iOS = null
};

public ${Name}()
: base(null, null)
{
if (OnAndroid)
{
Expand Down
2 changes: 1 addition & 1 deletion UITestPOPAddin/FileTemplates/TestFileTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace ${Namespace}
{
public class ${Name} : AbstractSetup
public class ${Name} : BaseTestFixture
{
public ${Name}(Platform platform)
: base(platform)
Expand Down
33 changes: 0 additions & 33 deletions UITestPOPAddin/ProjectTemplates/AbstractSetupTemplate.cs

This file was deleted.

40 changes: 0 additions & 40 deletions UITestPOPAddin/ProjectTemplates/AppInitializerTemplate.cs

This file was deleted.

94 changes: 0 additions & 94 deletions UITestPOPAddin/ProjectTemplates/BasePageTemplate.cs

This file was deleted.

7 changes: 6 additions & 1 deletion UITestPOPAddin/ProjectTemplates/FirstPageTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,13 @@ namespace ${Namespace}
{
public class FirstPage : BasePage
{
protected override PlatformQuery Trait => new PlatformQuery
{
Android = null,
iOS = null
};

public FirstPage()
: base(null, null)
{
if (OnAndroid)
{
Expand Down
12 changes: 3 additions & 9 deletions UITestPOPAddin/ProjectTemplates/PageObjectUITestApp.cs.xpt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,11 @@
<Package
ID="Xamarin.UITest"
Version="2.0.0" />
<Package
ID="Xamarin.UITest.POP"
Version="1.0.0" />
</Packages>
<Files>
<File
name="AbstractSetup.cs"
src="AbstractSetupTemplate.cs" />
<File
name="AppInitializer.cs"
src="AppInitializerTemplate.cs" />
<File
name="BasePage.cs"
src="BasePageTemplate.cs" />
<Directory
name="Pages">
<File
Expand Down
2 changes: 1 addition & 1 deletion UITestPOPAddin/ProjectTemplates/TestsTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace ${Namespace}
{
public class Tests : AbstractSetup
public class Tests : BaseTestFixture
{
public Tests(Platform platform)
: base(platform)
Expand Down
2 changes: 1 addition & 1 deletion UITestPOPAddin/Properties/AddinInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[assembly: Addin(
"UITestPOPAddin",
Namespace = "UITestPOPAddin",
Version = "0.1.0"
Version = "1.0.0"
)]

[assembly: AddinName("UITest Page Object Add-In")]
Expand Down
3 changes: 0 additions & 3 deletions UITestPOPAddin/UITestPOPAddin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
<AddinFile Include="FileTemplates\PageFileTemplate.cs" />
<AddinFile Include="FileTemplates\TestFileTemplate.cs" />
<AddinFile Include="CodeTemplates\PageObjectCodeTemplates.xml" />
<AddinFile Include="ProjectTemplates\BasePageTemplate.cs" />
<AddinFile Include="ProjectTemplates\AppInitializerTemplate.cs" />
<AddinFile Include="ProjectTemplates\AbstractSetupTemplate.cs" />
<AddinFile Include="ProjectTemplates\TestsTemplate.cs" />
<AddinFile Include="ProjectTemplates\FirstPageTemplate.cs" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion fake.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let releaseDir = currentDirectory + "/release/"
let projects = [currentDirectory + "/UITestPOPAddin/UITestPOPAddin.csproj"]

Target "Clean" (fun _ ->
CleanDirs [buildDir; releaseDir]
CleanDirs [buildDir]
)

Target "Build" (fun _ ->
Expand Down
Binary file added release/UITestPOPAddin.UITestPOPAddin_1.0.0.mpack
Binary file not shown.
1 change: 1 addition & 0 deletions release/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ <h1>Add-in Repository</h1>
<p>This is a list of add-ins available in this repository.</p>
<table border=1><thead><tr><th>Add-in</th><th>Version</th><th>Description</th></tr></thead>
<tr><td>UITest Page Object Add-In</td><td>0.1.0</td><td>A Xamarin Studio add-in to facilitate using the page object pattern with UITest</td></tr>
<tr><td>UITest Page Object Add-In</td><td>1.0.0</td><td>A Xamarin Studio add-in to facilitate using the page object pattern with UITest</td></tr>
</table>
</body></html>
2 changes: 1 addition & 1 deletion release/main.mrep
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<Repository xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Repository>
<Url>root.mrep</Url>
<LastModified>2016-11-12T02:32:23-08:00</LastModified>
<LastModified>2017-02-06T16:54:41-08:00</LastModified>
</Repository>
</Repository>
20 changes: 20 additions & 0 deletions release/root.mrep
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,24 @@
</Properties>
</Addin>
</Addin>
<Addin>
<Url>UITestPOPAddin.UITestPOPAddin_1.0.0.mpack</Url>
<Addin>
<Id>UITestPOPAddin</Id>
<Namespace>UITestPOPAddin</Namespace>
<Name>UITest Page Object Add-In</Name>
<Version>1.0.0</Version>
<BaseVersion />
<Author>Matisse Hack</Author>
<Copyright />
<Url />
<Description>A Xamarin Studio add-in to facilitate using the page object pattern with UITest</Description>
<Category>IDE extensions</Category>
<Dependencies />
<OptionalDependencies />
<Properties>
<Property name="DownloadSize">5987</Property>
</Properties>
</Addin>
</Addin>
</Repository>

0 comments on commit 4caaae8

Please sign in to comment.