Skip to content

Commit d49a6c5

Browse files
Fixes #55 - oddgen "Run test" view under "All Suites": Include suites without tests
1 parent b0fc546 commit d49a6c5

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

sqldev/src/main/java/org/utplsql/sqldev/dal/UtplsqlDao.xtend

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ class UtplsqlDao {
416416
'Yes' AS multiselectable,
417417
'Yes' AS relevant
418418
FROM test
419-
WHERE item_type = 'UT_TEST'
419+
WHERE item_type IN ('UT_TEST', 'UT_SUITE')
420420
UNION ALL
421421
SELECT object_owner || '.' || object_name AS parent_id,
422422
object_owner || '.' || object_name || '.' || item_name AS id,

sqldev/src/test/java/org/utplsql/sqldev/tests/DalTest.xtend

+15
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,21 @@ class DalTest extends AbstractJdbcTest {
471471
Assert.assertEquals(expected, actual)
472472

473473
}
474+
475+
@Test
476+
def void issue55SuiteWithoutTests() {
477+
setupAndTeardown
478+
jdbcTemplate.execute('''
479+
CREATE OR REPLACE PACKAGE junit_utplsql_test_pkg IS
480+
-- %suite
481+
482+
END junit_utplsql_test_pkg;
483+
''')
484+
val dao = new UtplsqlDao(dataSource.connection)
485+
val actualNodes = dao.runnables()
486+
Assert.assertEquals(4, actualNodes.size)
487+
jdbcTemplate.execute("DROP PACKAGE junit_utplsql_test_pkg")
488+
}
474489

475490
@Test
476491
def void issue56SuiteWithoutTests() {

0 commit comments

Comments
 (0)