Skip to content

Run utPLSQL tests in a dedicated utPLSQL view #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 189 commits into from
Jul 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
0f26e14
change to snapshot version 1.0.0-SNAPSHOT
PhilippSalvisberg Jan 8, 2019
7639000
Fix wrong assertion in generated test
PhilippSalvisberg Jan 8, 2019
4d484fb
return Thread when running reporter to simplify testing
PhilippSalvisberg Jan 8, 2019
b56a700
test coverage reporter using a dedicated connection
PhilippSalvisberg Jan 8, 2019
3ee05bd
rename classes and packages
PhilippSalvisberg Jan 11, 2019
fe915b8
remove duplicate dependency
PhilippSalvisberg Jan 11, 2019
225152e
add missing default tests
PhilippSalvisberg Jan 11, 2019
5c2198c
remove unused choose method
PhilippSalvisberg Jan 11, 2019
628099d
close dialog at the end
PhilippSalvisberg Jan 11, 2019
6abb537
add layout test for preference panel
PhilippSalvisberg Jan 11, 2019
2cbd045
moved bug fix tests to dedicated class
PhilippSalvisberg Jan 12, 2019
4c508cb
renamed tests using CamelCase
PhilippSalvisberg Jan 12, 2019
3275c1a
move bug fix tests to dedicated class
PhilippSalvisberg Jan 12, 2019
23fbd51
remove test prefix/suffix if not related to a utPLSQL test
PhilippSalvisberg Jan 12, 2019
a79177c
removed unnecessary if
PhilippSalvisberg Jan 12, 2019
fe64c33
make it abstract
PhilippSalvisberg Jan 13, 2019
959a8a5
remove unnecessary use of local variables
PhilippSalvisberg Jan 13, 2019
bd80c3f
add XML tooling to extend Node with XPath capabilities
PhilippSalvisberg Jan 13, 2019
7404791
added model for realtime reporter
PhilippSalvisberg Jan 13, 2019
c0c7a6b
added interface for classes consuming realtime reporter results
PhilippSalvisberg Jan 13, 2019
778551e
added data access layer for realtime reporter including tests
PhilippSalvisberg Jan 13, 2019
8f0a752
initial version of utPLSQL runner
PhilippSalvisberg Jan 13, 2019
780be14
test initial version of utplsql runner
PhilippSalvisberg Jan 13, 2019
79bdaea
updated utPLSQL logo
PhilippSalvisberg Jan 22, 2019
24597bc
ignore DataGrip/IntelliJ settings
PhilippSalvisberg Feb 26, 2019
195c8f5
Merge branch 'issue_59' into issue_6
PhilippSalvisberg Apr 28, 2019
4152e9e
must use ut_output_clob_table_buffer since utPLSQL 3.1.7
PhilippSalvisberg Jun 4, 2019
46387f0
use get_lines via reporter
PhilippSalvisberg Jun 4, 2019
d56abec
use tabbed pane instead of boardered groups in preferences
PhilippSalvisberg Jun 8, 2019
188bea7
do not center perferences
PhilippSalvisberg Jun 8, 2019
e3bc7c2
use SQL Developer 19.1.0
PhilippSalvisberg Jun 8, 2019
a4a064d
shorten labels, context is given based on tab
PhilippSalvisberg Jun 8, 2019
5109369
add "use realtime reporter" as preference option
PhilippSalvisberg Jun 8, 2019
c47cf58
use "private def" instead of "def private"
PhilippSalvisberg Jun 9, 2019
f1551d0
new utPLSQL logo
PhilippSalvisberg Jun 9, 2019
edde42a
icon for successful tests
PhilippSalvisberg Jun 9, 2019
dbd1031
icon for errored tests
PhilippSalvisberg Jun 9, 2019
d5b5a86
icon for failed tests
PhilippSalvisberg Jun 9, 2019
d1d08d9
icon for disabled tests
PhilippSalvisberg Jun 9, 2019
9c40705
linked hash map keeping the last n entries (for test runs)
PhilippSalvisberg Jun 10, 2019
55c1e32
add isSupported method as replacement for exception
PhilippSalvisberg Jun 10, 2019
2843499
add test run to model
PhilippSalvisberg Jun 10, 2019
43a3f77
add icons and labels for test runner
PhilippSalvisberg Jun 10, 2019
2dc6ace
add test runner panel that works outside of SQL Developer
PhilippSalvisberg Jun 10, 2019
256e1db
disable test (does not work outside of SQL Developer)
PhilippSalvisberg Jun 10, 2019
863d0f6
add test runner view
PhilippSalvisberg Jun 10, 2019
c8a8101
add status to model
PhilippSalvisberg Jun 10, 2019
1d51401
change update interface and progressBar properties
PhilippSalvisberg Jun 10, 2019
7879179
add RUNNER_RUNNING_TEXT
PhilippSalvisberg Jun 10, 2019
dc2bfb1
use new update interface, passing reporterId
PhilippSalvisberg Jun 10, 2019
0ae3be5
support execution outside of SQL Developer
PhilippSalvisberg Jun 10, 2019
2a042aa
enable and change name
PhilippSalvisberg Jun 10, 2019
61d8a7d
add resources for overview table
PhilippSalvisberg Jun 10, 2019
35d5ed9
add getStatusIcon method for overview table
PhilippSalvisberg Jun 10, 2019
5fdf1e2
add overview table
PhilippSalvisberg Jun 10, 2019
719f46f
change size of runner panel
PhilippSalvisberg Jun 10, 2019
aa2d925
initialize gui before assiging model
PhilippSalvisberg Jun 10, 2019
30c0035
add a sleep at the end of the test
PhilippSalvisberg Jun 10, 2019
46ef53c
make tabel sortable, sync while updating, improve formatting
PhilippSalvisberg Jun 10, 2019
4512f80
add disabled and errored test
PhilippSalvisberg Jun 10, 2019
2e2c6e4
suppressing common prefix to make shown test id more compact
PhilippSalvisberg Jun 10, 2019
aadb403
rename GFG to PrefixTools including usages
PhilippSalvisberg Jun 10, 2019
90c7fe3
notify when no tests are found
PhilippSalvisberg Jun 10, 2019
ec85b5f
use common prefix as column header
PhilippSalvisberg Jun 11, 2019
fd344d6
show failures before errors (as in documentation reporter)
PhilippSalvisberg Jun 11, 2019
7a60094
handle common prefix for when running single test
PhilippSalvisberg Jun 11, 2019
1c8b717
fix typo in model, executionType -> executableType
PhilippSalvisberg Jun 11, 2019
0b0b508
failed exception missed in tests - fixed
PhilippSalvisberg Jun 11, 2019
8baf8f3
class to fix resizing issues of JTextArea
PhilippSalvisberg Jun 11, 2019
33173ab
add method getTest
PhilippSalvisberg Jun 11, 2019
3165173
added tabs for failures, server output and error stack
PhilippSalvisberg Jun 11, 2019
a8904a3
added dbms_output, multiple asserts
PhilippSalvisberg Jun 11, 2019
1dea74e
remove comment before create package
PhilippSalvisberg Jun 12, 2019
ecc46f8
include warnings in tests, suites to be introduced in v3.1.7
PhilippSalvisberg Jun 12, 2019
5c4addc
add test case with warnings
PhilippSalvisberg Jun 12, 2019
1e5bd8d
add WrapLayout to be used for counters
PhilippSalvisberg Jun 12, 2019
e8bacef
add disabled label and reorder resources
PhilippSalvisberg Jun 12, 2019
fc7883b
put counters in wrap layout panel and add disabled counter
PhilippSalvisberg Jun 12, 2019
04d8376
adding warning resource
PhilippSalvisberg Jun 12, 2019
409c8b8
add warnings counter
PhilippSalvisberg Jun 12, 2019
e9e6a81
add info resource
PhilippSalvisberg Jun 12, 2019
67b43a3
add infoCounter (number of tests with server output)
PhilippSalvisberg Jun 12, 2019
adf0d6a
populate infoCount on Run level
PhilippSalvisberg Jun 12, 2019
ca1161e
add info counter and align counters
PhilippSalvisberg Jun 12, 2019
e79e117
calculate counter on run level based on tests only
PhilippSalvisberg Jun 12, 2019
a795dbf
add warnings tab
PhilippSalvisberg Jun 12, 2019
be1c09b
set column header to ID if there is no common prefix
PhilippSalvisberg Jun 12, 2019
9543783
change default frame size when running outside of SQL Developer
PhilippSalvisberg Jun 12, 2019
efd96bf
removed RUNNER_TEST_STATUS (not required, always empty)
PhilippSalvisberg Jun 12, 2019
9d92cd0
add warning and info indicators
PhilippSalvisberg Jun 12, 2019
b0934a8
fix headers without icon
PhilippSalvisberg Jun 12, 2019
837634d
sync test detail tabs with most sensible content
PhilippSalvisberg Jun 12, 2019
0c152ba
new info icon
PhilippSalvisberg Jun 13, 2019
cb30136
new warning icon
PhilippSalvisberg Jun 13, 2019
435bb51
add toolbar icons to resource bundle
PhilippSalvisberg Jun 13, 2019
e802329
add toolbar based on JToolBar to mimic look & feel of SQLDev
PhilippSalvisberg Jun 13, 2019
5e49843
add pathList to Run, required to handle reruns
PhilippSalvisberg Jun 13, 2019
21ac248
add toolbar with refresh, rerun and rerun in worksheet
PhilippSalvisberg Jun 13, 2019
4772d3d
fix insets in toolbar
PhilippSalvisberg Jun 13, 2019
860e654
add separator line at the bottom of the toolbar
PhilippSalvisberg Jun 13, 2019
69a4a97
add copyright header
PhilippSalvisberg Jun 13, 2019
ad3d582
add clear icon to resource bundle
PhilippSalvisberg Jun 13, 2019
f62c43f
generic key, value helper class for combo box model
PhilippSalvisberg Jun 13, 2019
36ed301
shorter representation of a test run
PhilippSalvisberg Jun 13, 2019
858c9b1
add combobox with latest runs to toolbar, with clear button
PhilippSalvisberg Jun 13, 2019
10bde5c
calculate common prefix when setting model
PhilippSalvisberg Jun 13, 2019
2991500
add description resource
PhilippSalvisberg Jun 13, 2019
6c91842
table model for failed expectations
PhilippSalvisberg Jun 13, 2019
7805171
show all failed expectations
PhilippSalvisberg Jun 13, 2019
e7f3f10
Fix formatting issues in failure tab
PhilippSalvisberg Jun 14, 2019
3b52818
fix margins of description label and use resource
PhilippSalvisberg Jun 14, 2019
7a0b4e9
calculate common prefix also for initially empty model
PhilippSalvisberg Jun 14, 2019
6b9c9b6
add context menu items to run selected tests
PhilippSalvisberg Jun 14, 2019
8252392
get failure text to get a more dense result for the GUI
PhilippSalvisberg Jun 14, 2019
37a26c4
add new line between message and caller
PhilippSalvisberg Jun 14, 2019
843438c
combine failure message and caller, add cursor in warnings fix NPEs
PhilippSalvisberg Jun 14, 2019
613ad52
changed icons for failures and errors based on feedback
PhilippSalvisberg Jun 14, 2019
c1bb115
use lighter variant of disabled icon
PhilippSalvisberg Jun 14, 2019
ae018c7
add realtime reporter preferences
PhilippSalvisberg Jun 14, 2019
9ea6ca0
add realtime reporter preferences labels
PhilippSalvisberg Jun 14, 2019
0da6106
apply preferences and change them via context menus
PhilippSalvisberg Jun 14, 2019
a5fe122
apply preferences only when GUI is not displayed
PhilippSalvisberg Jun 15, 2019
e46a437
add sync detail tab preference to model
PhilippSalvisberg Jun 15, 2019
6788f11
add sync detail tab resource
PhilippSalvisberg Jun 15, 2019
af316da
add sync detail tab to preferences UI
PhilippSalvisberg Jun 15, 2019
ec7d68d
add sync detail tab context menu item honoring preferences
PhilippSalvisberg Jun 15, 2019
8960a3a
run correct selected tests in sorted table
PhilippSalvisberg Jun 15, 2019
b4d1f94
close connections after run
PhilippSalvisberg Jun 16, 2019
0a0048a
set initial state of JCheckBoxMenuItem in constructor
PhilippSalvisberg Jun 16, 2019
6d86ed5
add checkmark icon
PhilippSalvisberg Jun 16, 2019
f5c063f
add checkmark icon and rename test_id to suitepath
PhilippSalvisberg Jun 16, 2019
1627a75
rename test_id to suitepath
PhilippSalvisberg Jun 16, 2019
b6f47bf
rename test_id to suitepath
PhilippSalvisberg Jun 16, 2019
9fcda69
rename test id to suitepath, remove end date/time, reorder items, fix
PhilippSalvisberg Jun 16, 2019
9273e60
renamed testsuite to testId to match realtime reporter model
PhilippSalvisberg Jun 16, 2019
9f1842f
add read-only TextField with honoring look and feel
PhilippSalvisberg Jun 17, 2019
24bd500
add read-only TextArea honoring look and feel
PhilippSalvisberg Jun 17, 2019
dc71fd3
use own components to make make UI more consistent across platforms
PhilippSalvisberg Jun 17, 2019
69e2718
add status icon to resource bundle
PhilippSalvisberg Jun 17, 2019
fa3027e
use status icon for test results, remove icon for tests counter
PhilippSalvisberg Jun 17, 2019
65d9cd5
updated failure icon
PhilippSalvisberg Jun 17, 2019
d14728a
increase header/row heights to ensure icon fits in overview table
PhilippSalvisberg Jun 17, 2019
fe9b413
change failure icon again (less heavy)
PhilippSalvisberg Jun 17, 2019
3bd6de4
add utPLSQL tab icon (only visible when moved to center)
PhilippSalvisberg Jun 18, 2019
36ead62
set of icons provided by Jacek Gebal
PhilippSalvisberg Jun 18, 2019
bd618c1
updated set of icons for disabled, error, failure and success
PhilippSalvisberg Jun 18, 2019
f4fe251
add shortFailureText to be use
PhilippSalvisberg Jun 12, 2019
c0cbbf5
move static string resources to resource bundle
PhilippSalvisberg Jun 19, 2019
5859aff
use shortFailureText and new column header
PhilippSalvisberg Jun 19, 2019
699d597
manage caret visibility when gain and lose focus
PhilippSalvisberg Jun 19, 2019
763563f
remove implementation of FocusListener
PhilippSalvisberg Jun 19, 2019
77a84ba
experimental intergration of SQL Developer's PL/SQL parser
PhilippSalvisberg Jun 19, 2019
3bbc226
Extend parser to support starting line of a package procedure
PhilippSalvisberg Jun 19, 2019
61baad2
add getSource to get source of a package spec or body
PhilippSalvisberg Jun 19, 2019
6190239
open PL/SQL editor for test package or test package body from tables
PhilippSalvisberg Jun 19, 2019
61b9b83
add getObjectType - required for linking within SQLDev
PhilippSalvisberg Jun 20, 2019
dd2754e
add RunnerTextPane to be used for text with hyperlinks
PhilippSalvisberg Jun 20, 2019
6309e7e
add hyperlinks to source for failed expectations, errors, warnings, info
PhilippSalvisberg Jun 20, 2019
3932b2b
minimal dimension for RunnerTextPane components
PhilippSalvisberg Jun 20, 2019
dcc719f
ensure regex does not match spaces in owner, package, procedure
PhilippSalvisberg Jun 22, 2019
205f9eb
escaping HTML, adapting regex and making them reluctant
PhilippSalvisberg Jun 22, 2019
f4da0f4
make common prefix calculation more robust
PhilippSalvisberg Jun 23, 2019
ceab13b
add test to ensure events are reported immediately (based on fetch size)
PhilippSalvisberg Jun 28, 2019
f4a568a
hide total number of tests while initializing
PhilippSalvisberg Jun 29, 2019
ad67b82
add progress icon to resource bundle
PhilippSalvisberg Jun 29, 2019
03888bc
set progress icon for running but not completed test
PhilippSalvisberg Jun 29, 2019
824e856
extend model with currentTestNumber to handle progress status
PhilippSalvisberg Jun 29, 2019
16709e5
fix typo in RUNNER_REFRESH_TOOLTIP
PhilippSalvisberg Jun 29, 2019
cffd290
exclude border from painted background area
PhilippSalvisberg Jun 29, 2019
a36a79f
fix tool tip text for refresh button
PhilippSalvisberg Jun 29, 2019
b073c01
Fix Windows and macOS look and feel issues
PhilippSalvisberg Jun 29, 2019
3066797
add currentTest to make it easier to reference it from post suite event
PhilippSalvisberg Jun 30, 2019
20b8e8c
populate warnings, info produced on suite level
PhilippSalvisberg Jun 30, 2019
c15714d
format warnings/info on suite level (title)
PhilippSalvisberg Jun 30, 2019
ceca779
produce errors and warnings on suite level
PhilippSalvisberg Jun 30, 2019
8341f40
add preferences "number of Runs in History", "show test "description?"
PhilippSalvisberg Jun 30, 2019
5a961b0
change dimensions of frame to fit all tabs on one line
PhilippSalvisberg Jun 30, 2019
8565a87
fix wrong values for numberOfRunsInHistorySpinner
PhilippSalvisberg Jun 30, 2019
9dbba00
shorter labels for test description
PhilippSalvisberg Jun 30, 2019
8afeb66
add getter for maxEntries, used to check if recreation is necessary
PhilippSalvisberg Jun 30, 2019
0ca9c45
apply preferences for showNumberOfRunsInHistory and showTestDescription
PhilippSalvisberg Jun 30, 2019
5422697
avoid automatic horizontal scrolling
PhilippSalvisberg Jun 30, 2019
7f4e673
support for is_test, is_suite, has_suites - but disabled
PhilippSalvisberg Jun 30, 2019
a352e59
change wording to "if present" instead of "if possible"
PhilippSalvisberg Jul 1, 2019
66bf96a
old, internal API is not accessible anymore with utPLSQL >= v3.1.8
PhilippSalvisberg Jul 1, 2019
0a9256d
add object type to hyperlink, use v3.1.8 warning format
PhilippSalvisberg Jul 2, 2019
4c0a2aa
fix look and feel of toolbar on Metal (Ubuntu)
PhilippSalvisberg Jul 3, 2019
ae95ad7
workaround for ignored fetchSize when connecting to 11.2.0.2 XE
PhilippSalvisberg Jul 4, 2019
629f610
update screenshots based changes for version 1.0.0
PhilippSalvisberg Jul 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
**/.project
**/.classpath
**/.settings
**/.idea

# Mobile Tools for Java (J2ME)
.mtj.tmp/
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Please file your bug reports, enhancement requests, questions and other support

## How to Build

1. [Download](http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html) and install SQL Developer 18.3.0
1. [Download](http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html) and install SQL Developer 19.1.0
2. [Download](https://maven.apache.org/download.cgi) and install Apache Maven 3.5.4
3. [Download](https://git-scm.com/downloads) and install a git command line client
4. Clone the utPLSQL-SQLDeveloper repository
Expand All @@ -122,7 +122,7 @@ Please file your bug reports, enhancement requests, questions and other support

6. Run maven build by the following command

mvn -Dsqldev.basedir=/Applications/SQLDeveloper18.3.0.app/Contents/Resources/sqldeveloper -DskipTests=true clean package
mvn -Dsqldev.basedir=/Applications/SQLDeveloper19.1.0.app/Contents/Resources/sqldeveloper -DskipTests=true clean package

Amend the parameter sqldev.basedir to match the path of your SQL Developer installation. This folder is used to reference Oracle jar files which are not available in public Maven repositories
7. The resulting file ```utplsql_for_SQLDev_x.x.x-SNAPSHOT.zip``` in the ```target``` directory can be installed within SQL Developer
Expand Down
Binary file modified images/code_coverage_dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/generate_utplsql_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/generate_utplsql_test_from_template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/preferences.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/run_utplsql_test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion sqldev/extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@
</composite-rule>
</rules>
<triggers>
<dockable-factory-hook xmlns="http://xmlns.oracle.com/ide/extension">
<factory id="UTPLSQL_RUNNER_FACTORY" class="org.utplsql.sqldev.ui.runner.RunnerFactory" />
</dockable-factory-hook>
<actions xmlns="http://xmlns.oracle.com/jdeveloper/1013/extension">
<action id="utplsql.test">
<properties>
Expand Down Expand Up @@ -158,10 +161,17 @@
<settings-ui-hook>
<page id="UTPLSQL_PREFERENCES_PAGE" parent-idref="/preferences">
<label>${PREF_LABEL}</label>
<traversable-class>org.utplsql.sqldev.PreferencePanel
<traversable-class>org.utplsql.sqldev.ui.preference.PreferencePanel
</traversable-class>
</page>
</settings-ui-hook>
</triggers>
</trigger-hooks>

<hooks>
<dockable-hook xmlns="http://xmlns.oracle.com/ide/extension">
<dockable id="UTPLSQL_RUNNER_VIEW" />
</dockable-hook>
</hooks>

</extension>
33 changes: 23 additions & 10 deletions sqldev/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<!-- The Basics -->
<groupId>org.utplsql</groupId>
<artifactId>org.utplsql.sqldev</artifactId>
<version>0.7.2-SNAPSHOT</version>
<version>1.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version>
<jdk.version.test>1.8</jdk.version.test>
<xtend.version>2.15.0</xtend.version>
<!-- requires SQL Developer 4.1.0 or higher (first version based on JDK 1.8) -->
<sqldev.basedir>/Applications/SQLDeveloper18.3.0.app/Contents/Resources/sqldeveloper</sqldev.basedir>
<sqldev.basedir>/Applications/SQLDeveloper19.1.0.app/Contents/Resources/sqldeveloper</sqldev.basedir>
<final.name>utplsql_for_SQLDev_${project.version}</final.name>
</properties>
<dependencies>
Expand Down Expand Up @@ -60,13 +60,6 @@
<scope>system</scope>
<systemPath>${sqldev.basedir}/ide/lib/uic.jar</systemPath>
</dependency>
<dependency>
<groupId>oracle</groupId>
<artifactId>oracle.sqldeveloper.utils</artifactId>
<version>12.2.0</version>
<scope>system</scope>
<systemPath>${sqldev.basedir}/sqldeveloper/extensions/oracle.sqldeveloper.utils.jar</systemPath>
</dependency>
<dependency>
<groupId>oracle</groupId>
<artifactId>oracle.ide.navigator</artifactId>
Expand Down Expand Up @@ -144,7 +137,22 @@
<scope>system</scope>
<systemPath>${sqldev.basedir}/jdev/extensions/oracle.jdeveloper.java.core.jar</systemPath>
</dependency>
<!-- SQL Developer specific dependencies part 2 (available in public maven repositories) -->
<!-- SQL Developer specific dependencies part 2 (used for tests only) -->
<dependency>
<groupId>oracle</groupId>
<artifactId>jewt4.jar</artifactId>
<version>12.2.1</version>
<scope>system</scope>
<systemPath>${sqldev.basedir}/modules/oracle.bali.jewt/jewt4.jar</systemPath>
</dependency>
<dependency>
<groupId>oracle</groupId>
<artifactId>share.jar</artifactId>
<version>12.2.1</version>
<scope>system</scope>
<systemPath>${sqldev.basedir}/modules/oracle.bali.share/share.jar</systemPath>
</dependency>
<!-- SQL Developer specific dependencies part 3 (available in public maven repositories) -->
<dependency>
<!-- SQL Developer is using this older version -->
<groupId>org.osgi</groupId>
Expand All @@ -164,6 +172,11 @@
<artifactId>spring-jdbc</artifactId>
<version>5.1.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.1.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.oddgen</groupId>
<artifactId>org.oddgen.sqldev</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.utplsql.sqldev
package org.utplsql.sqldev.coverage

import java.awt.Desktop
import java.io.File
Expand All @@ -27,14 +27,15 @@ import java.util.List
import java.util.logging.Logger
import oracle.dbtools.raptor.utils.Connections
import org.utplsql.sqldev.dal.UtplsqlDao
import org.utplsql.sqldev.ui.coverage.CodeCoverageReporterDialog

class CodeCoverageReporter {
static val Logger logger = Logger.getLogger(CodeCoverageReporter.name);

var Connection conn
var List<String> pathList
var List<String> includeObjectList
var CodeCoverageReporterWindow frame
var CodeCoverageReporterDialog frame
var String schemas
var String includeObjects
var String excludeObjects
Expand Down Expand Up @@ -100,7 +101,7 @@ class CodeCoverageReporter {
}
}

def setFrame(CodeCoverageReporterWindow frame) {
def setFrame(CodeCoverageReporterDialog frame) {
this.frame = frame;
}

Expand Down Expand Up @@ -136,15 +137,16 @@ class CodeCoverageReporter {
this.excludeObjects = excludeObjects
}

def runAsync() {
def Thread runAsync() {
val Runnable runnable = [|run]
val thread = new Thread(runnable)
thread.name = "code coverage reporter"
thread.start
return thread
}

def showParameterWindow() {
CodeCoverageReporterWindow.createAndShow(this)
CodeCoverageReporterDialog.createAndShow(this)
}

}
Loading