Skip to content

#87 - Debug utPLSQL tests #106

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 36 commits into from
Jun 2, 2020
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
76f40dd
comment to integrate in IntelliJ and handle OSGi errors
PhilippSalvisberg May 31, 2020
a26d6f4
extend .gitignore regarding IntelliJ, SonarQube and more
PhilippSalvisberg May 31, 2020
cd109b2
change resource files to UTF-8 and escape umlauts
PhilippSalvisberg May 31, 2020
b3b53c7
simplify test, compare length instead of content
PhilippSalvisberg May 31, 2020
b21f2bf
add debug icon
PhilippSalvisberg Jun 1, 2020
3088dda
add debug test label to resource bundle
PhilippSalvisberg Jun 1, 2020
39cb25d
add dependencies to run debugger to pom.xml
PhilippSalvisberg Jun 1, 2020
3bf3fe8
add getProduceReportPlsql to be passed to the PL/SQL debugger
PhilippSalvisberg Jun 1, 2020
2cd156c
add "Debug utPLSQL test" to context menu of Connects window and editor
PhilippSalvisberg Jun 1, 2020
56e28af
ensure that realtime reporter is/stays visible during a test run
PhilippSalvisberg Jun 1, 2020
22c2898
simplify code
PhilippSalvisberg Jun 1, 2020
8ed6eb1
call the PL/SQL debugger when testing via realtime reporter
PhilippSalvisberg Jun 1, 2020
a6cea12
call the PL/SQL debugger when testing via worksheet
PhilippSalvisberg Jun 1, 2020
5006b7c
extend controller to handle debug action in the Connections window an…
PhilippSalvisberg Jun 1, 2020
4734c40
refactor, simplify
PhilippSalvisberg Jun 2, 2020
372fe3b
add debug icon and debug utPLSQL test context menu for realtime reporter
PhilippSalvisberg Jun 2, 2020
402d1b4
create own context, add debugging flag, change enableDebugging signature
PhilippSalvisberg Jun 2, 2020
4a39c8d
use new enableDebugging signature
PhilippSalvisberg Jun 2, 2020
7a5a945
add toolbar button and context menu to debug utPLSQL tests
PhilippSalvisberg Jun 2, 2020
2e8cf80
add stop icon
PhilippSalvisberg Jun 2, 2020
b25cdc9
add stop icon and text regarding stop utPLSQL run in realtime reporter
PhilippSalvisberg Jun 2, 2020
08b3efa
add jetbrains annotations
PhilippSalvisberg Jun 2, 2020
45c9a43
add explicit spring-core dependency
PhilippSalvisberg Jun 2, 2020
ee5eb1c
intitialize counter with zero values
PhilippSalvisberg Jun 2, 2020
7dd053e
initialize counter
PhilippSalvisberg Jun 2, 2020
94d8a3e
rename getDisabled to isDisabled
PhilippSalvisberg Jun 2, 2020
5ca644e
refactor, simplify
PhilippSalvisberg Jun 2, 2020
bfe8f19
make getTotalNumberOfCompletedTests more robust
PhilippSalvisberg Jun 2, 2020
d0d6ef1
always abort connections do not ask if connection is closed
PhilippSalvisberg Jun 2, 2020
175f821
add consumer connection of a run, to be closed in realtime reporter
PhilippSalvisberg Jun 2, 2020
cd16c05
refactor, simplify
PhilippSalvisberg Jun 2, 2020
6d69770
add signature to pass timeout in consumeReport
PhilippSalvisberg Jun 2, 2020
c3393b5
adapt test cases to match new counter default values
PhilippSalvisberg Jun 2, 2020
6f90c82
change timeout to 1h for debugging sessions, close session on abort p…
PhilippSalvisberg Jun 2, 2020
1ac611f
refactor, simplify
PhilippSalvisberg Jun 2, 2020
7867223
add stop button to toolbar in realtime reporter
PhilippSalvisberg Jun 2, 2020
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
Prev Previous commit
Next Next commit
add consumer connection of a run, to be closed in realtime reporter
  • Loading branch information
PhilippSalvisberg committed Jun 2, 2020
commit 175f821e889c942ab233b2585e119da9ed61d704
11 changes: 11 additions & 0 deletions sqldev/src/main/java/org/utplsql/sqldev/model/runner/Run.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
*/
package org.utplsql.sqldev.model.runner;

import java.sql.Connection;
import java.util.LinkedHashMap;
import java.util.List;

Expand All @@ -39,6 +40,8 @@ public class Run {
private LinkedHashMap<String, Test> tests;
private String status;
private Long start;
// to abort connections, producerConn is handled by UtplsqlRunner
private Connection consumerConn;

@Override
public String toString() {
Expand Down Expand Up @@ -235,4 +238,12 @@ public Long getStart() {
public void setStart(final Long start) {
this.start = start;
}

public Connection getConsumerConn() {
return consumerConn;
}

public void setConsumerConn(Connection consumerConn) {
this.consumerConn = consumerConn;
}
}