GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Nested Contexts get mixed up · Issue #1034 · utPLSQL/utPLSQL

Nested Contexts get mixed up #1034

New issue
Copy link
New issue
Copy link
Closed
#1035
Closed
Nested Contexts get mixed up#1034
#1035
Copy link
Assignees
pesse
Labels
bug
Milestone
v3.1.10

Description

@pesse
pesse
opened on Dec 19, 2019
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

Activity

  1. pesse commented on Dec 19, 2019

    @pesse
    pesse
    on Dec 19, 2019
    MemberAuthor
    More actions

    I think I can fix this.

  2. pesse
    self-assigned this
    on Dec 19, 2019
  3. pesse
    added
    bug
    on Dec 19, 2019
  4. pesse
    added a commit that references this issue on Dec 19, 2019

    Skip as many %endcontext as nested %context annotations

    This issue will close once commit e8f4532 is merged into the 'develop' branch.
    e8f4532
  5. jgebal
    added this to the 3.1.10 milestone on Dec 20, 2019
  6. jgebal
    closed this as completedin #1035on Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @pesse
    pesse

Labels

bug

Type

No type

Projects

No projects

    Milestone

    • v3.1.10

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.