Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Nested Contexts get mixed up #1034

Copy link
Copy link
Closed
@pesse

Description

@pesse
Issue body actions

utPLSQL-Version: 3.1.9

Consider the following test-suite with nested-contexts:

create or replace package ut_context_test as

  -- %suite(Context Test)
  -- %suitepath(context)

  -- %context(Level 1)

    -- %context(Level 1.1)

      -- %test(Test 1.1.1)
      procedure test_1_1_1;
      -- %test(Test 1.1.2)
      procedure test_1_1_2;

    -- %endcontext

  -- %endcontext

  -- %context(Level 2)

    -- %test(Test 2.1)
    procedure test_2_1;

  -- %endcontext
end;
/

Expectation would be:

context
  Context Test
    Level 1
      Level 1.1
        Test 1.1.1 [,016 sec] (FAILED - 2)
        Test 1.1.2 [,005 sec] (FAILED - 3)
    Level 2
      Test 2.1 [,016 sec] (FAILED - 1)

But at the moment it's interpreted like that:

context
  Context Test
    Level 1
      Level 2
        Test 2.1 [,016 sec] (FAILED - 1)
      Level 1.1
        Test 1.1.1 [,016 sec] (FAILED - 2)
        Test 1.1.2 [,005 sec] (FAILED - 3)

It looks like consecutive %endcontext are not interpreted correctly so that termination doesn't happen at the correct time/place

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.