Skip to content

Commit aa09919

Browse files
committed
Introduced utPLSQL.UI and utPLSQL.UI.Standalone to improve testing and debugging
1 parent 3bf54c2 commit aa09919

26 files changed

+2229
-27
lines changed

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin.sln

+28
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "utPLSQL.Lib.Test", "utPLSQL
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "utPLSQL.Lib", "utPLSQL.Lib\utPLSQL.Lib.csproj", "{DF09EACE-50EC-44EA-849A-80462A219CFC}"
1111
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "utPLSQL.UI", "utPLSQL.UI\utPLSQL.UI.csproj", "{7669189C-4A58-4E82-9DCB-7956624A719B}"
13+
EndProject
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "utPLSQL.UI.Standalone", "utPLSQL.UI.Standalone\utPLSQL.UI.Standalone.csproj", "{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}"
15+
EndProject
1216
Global
1317
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1418
Debug|Any CPU = Debug|Any CPU
@@ -55,6 +59,30 @@ Global
5559
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Release|x64.Build.0 = Release|Any CPU
5660
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Release|x86.ActiveCfg = Release|Any CPU
5761
{DF09EACE-50EC-44EA-849A-80462A219CFC}.Release|x86.Build.0 = Release|Any CPU
62+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
63+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Debug|Any CPU.Build.0 = Debug|Any CPU
64+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Debug|x64.ActiveCfg = Debug|Any CPU
65+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Debug|x64.Build.0 = Debug|Any CPU
66+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Debug|x86.ActiveCfg = Debug|Any CPU
67+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Debug|x86.Build.0 = Debug|Any CPU
68+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Release|Any CPU.ActiveCfg = Release|Any CPU
69+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Release|Any CPU.Build.0 = Release|Any CPU
70+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Release|x64.ActiveCfg = Release|Any CPU
71+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Release|x64.Build.0 = Release|Any CPU
72+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Release|x86.ActiveCfg = Release|Any CPU
73+
{7669189C-4A58-4E82-9DCB-7956624A719B}.Release|x86.Build.0 = Release|Any CPU
74+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
75+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Debug|Any CPU.Build.0 = Debug|Any CPU
76+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Debug|x64.ActiveCfg = Debug|Any CPU
77+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Debug|x64.Build.0 = Debug|Any CPU
78+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Debug|x86.ActiveCfg = Debug|Any CPU
79+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Debug|x86.Build.0 = Debug|Any CPU
80+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Release|Any CPU.ActiveCfg = Release|Any CPU
81+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Release|Any CPU.Build.0 = Release|Any CPU
82+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Release|x64.ActiveCfg = Release|Any CPU
83+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Release|x64.Build.0 = Release|Any CPU
84+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Release|x86.ActiveCfg = Release|Any CPU
85+
{5D3EA63E-AAFE-47DB-9D48-4BA9C205ADBE}.Release|x86.Build.0 = Release|Any CPU
5886
EndGlobalSection
5987
GlobalSection(SolutionProperties) = preSolution
6088
HideSolutionNode = FALSE

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin.sln.DotSettings.user

-4
This file was deleted.

PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin/PlsqlDeveloperUtPlsqlPlugin.csproj

+4-19
Original file line numberDiff line numberDiff line change
@@ -110,41 +110,22 @@
110110
<Compile Include="AboutDialog.Designer.cs">
111111
<DependentUpon>AboutDialog.cs</DependentUpon>
112112
</Compile>
113-
<Compile Include="CodeCoverageReportDialog.cs">
114-
<SubType>Form</SubType>
115-
</Compile>
116-
<Compile Include="CodeCoverageReportDialog.Designer.cs">
117-
<DependentUpon>CodeCoverageReportDialog.cs</DependentUpon>
118-
</Compile>
119113
<Compile Include="Properties\Resources.Designer.cs">
120114
<AutoGen>True</AutoGen>
121115
<DesignTime>True</DesignTime>
122116
<DependentUpon>Resources.resx</DependentUpon>
123117
</Compile>
124-
<Compile Include="TestRunnerWindow.cs">
125-
<SubType>Form</SubType>
126-
</Compile>
127-
<Compile Include="TestRunnerWindow.Designer.cs">
128-
<DependentUpon>TestRunnerWindow.cs</DependentUpon>
129-
</Compile>
130118
<Compile Include="PlsqlDeveloperUtPlsqlPlugin.cs" />
131119
<Compile Include="Properties\AssemblyInfo.cs" />
132-
<Compile Include="TestResult.cs" />
133120
</ItemGroup>
134121
<ItemGroup>
135122
<EmbeddedResource Include="AboutDialog.resx">
136123
<DependentUpon>AboutDialog.cs</DependentUpon>
137124
</EmbeddedResource>
138-
<EmbeddedResource Include="CodeCoverageReportDialog.resx">
139-
<DependentUpon>CodeCoverageReportDialog.cs</DependentUpon>
140-
</EmbeddedResource>
141125
<EmbeddedResource Include="Properties\Resources.resx">
142126
<Generator>ResXFileCodeGenerator</Generator>
143127
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
144128
</EmbeddedResource>
145-
<EmbeddedResource Include="TestRunnerWindow.resx">
146-
<DependentUpon>TestRunnerWindow.cs</DependentUpon>
147-
</EmbeddedResource>
148129
</ItemGroup>
149130
<ItemGroup>
150131
<EmbeddedResource Include="utPLSQL.bmp">
@@ -168,6 +149,10 @@
168149
<Project>{df09eace-50ec-44ea-849a-80462a219cfc}</Project>
169150
<Name>utPLSQL.Lib</Name>
170151
</ProjectReference>
152+
<ProjectReference Include="..\utPLSQL.UI\utPLSQL.UI.csproj">
153+
<Project>{7669189c-4a58-4e82-9dcb-7956624a719b}</Project>
154+
<Name>utPLSQL.UI</Name>
155+
</ProjectReference>
171156
</ItemGroup>
172157
<ItemGroup>
173158
<WCFMetadata Include="Connected Services\" />
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.props')" />
4+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
5+
<PropertyGroup>
6+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
7+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
8+
<ProjectGuid>{8E898B26-0A4C-4DDA-9820-D5D050D2336E}</ProjectGuid>
9+
<OutputType>Exe</OutputType>
10+
<RootNamespace>utPLSQL</RootNamespace>
11+
<AssemblyName>utPLSQL.Test</AssemblyName>
12+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<Deterministic>true</Deterministic>
15+
<TargetFrameworkProfile />
16+
<NuGetPackageImportStamp>
17+
</NuGetPackageImportStamp>
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<PlatformTarget>AnyCPU</PlatformTarget>
21+
<DebugSymbols>true</DebugSymbols>
22+
<DebugType>full</DebugType>
23+
<Optimize>false</Optimize>
24+
<OutputPath>bin\Debug\</OutputPath>
25+
<DefineConstants>DEBUG;TRACE</DefineConstants>
26+
<ErrorReport>prompt</ErrorReport>
27+
<WarningLevel>4</WarningLevel>
28+
<Prefer32Bit>false</Prefer32Bit>
29+
</PropertyGroup>
30+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
31+
<PlatformTarget>AnyCPU</PlatformTarget>
32+
<DebugType>pdbonly</DebugType>
33+
<Optimize>true</Optimize>
34+
<OutputPath>bin\Release\</OutputPath>
35+
<DefineConstants>TRACE</DefineConstants>
36+
<ErrorReport>prompt</ErrorReport>
37+
<WarningLevel>4</WarningLevel>
38+
<Prefer32Bit>false</Prefer32Bit>
39+
</PropertyGroup>
40+
<ItemGroup>
41+
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
42+
<HintPath>..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll</HintPath>
43+
</Reference>
44+
<Reference Include="Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
45+
<HintPath>..\packages\MSTest.TestFramework.2.1.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll</HintPath>
46+
</Reference>
47+
<Reference Include="System" />
48+
<Reference Include="System.Core" />
49+
<Reference Include="System.Xml.Linq" />
50+
<Reference Include="System.Data.DataSetExtensions" />
51+
<Reference Include="Microsoft.CSharp" />
52+
<Reference Include="System.Data" />
53+
<Reference Include="System.Xml" />
54+
</ItemGroup>
55+
<ItemGroup>
56+
<Compile Include="Program.cs" />
57+
<Compile Include="Properties\AssemblyInfo.cs" />
58+
<Compile Include="RealTimeTestRunnerTest.cs" />
59+
</ItemGroup>
60+
<ItemGroup>
61+
<None Include="app.config" />
62+
<None Include="packages.config" />
63+
</ItemGroup>
64+
<ItemGroup>
65+
<ProjectReference Include="..\utPLSQL.Lib\utPLSQL.Lib.csproj">
66+
<Project>{df09eace-50ec-44ea-849a-80462a219cfc}</Project>
67+
<Name>utPLSQL.Lib</Name>
68+
</ProjectReference>
69+
</ItemGroup>
70+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
71+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
72+
<PropertyGroup>
73+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
74+
</PropertyGroup>
75+
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.props'))" />
76+
<Error Condition="!Exists('..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets'))" />
77+
</Target>
78+
<Import Project="..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets" Condition="Exists('..\packages\MSTest.TestAdapter.2.1.2\build\net45\MSTest.TestAdapter.targets')" />
79+
</Project>

PlsqlDeveloperUtPlsqlPlugin/utPLSQL.UI.Standalone/LoginForm.Designer.cs

+133
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.ComponentModel;
4+
using System.Data;
5+
using System.Drawing;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Windows.Forms;
9+
10+
namespace utPLSQL.UI.Standalone
11+
{
12+
public partial class LoginForm : Form
13+
{
14+
public LoginForm()
15+
{
16+
InitializeComponent();
17+
}
18+
19+
private void btnRunTests_Click(object sender, EventArgs e)
20+
{
21+
var realTimeTestRunner = new RealTimeTestRunner();
22+
realTimeTestRunner.Connect("toscamtest", "toscamtest", "CA40");
23+
24+
var testRunnerWindow = new TestRunnerWindow(realTimeTestRunner);
25+
testRunnerWindow.RunTestsAsync("USER", null, "toscamtest", null, false);
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Windows.Forms;
5+
6+
namespace utPLSQL.UI.Standalone
7+
{
8+
static class Program
9+
{
10+
/// <summary>
11+
/// The main entry point for the application.
12+
/// </summary>
13+
[STAThread]
14+
static void Main()
15+
{
16+
Application.EnableVisualStyles();
17+
Application.SetCompatibleTextRenderingDefault(false);
18+
Application.Run(new LoginForm());
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)