Skip to content
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

Cannot execute single test procedure that is inside context. #679

jgebal opened this issue May 23, 2018 · 1 comment

Cannot execute single test procedure that is inside context. #679

jgebal opened this issue May 23, 2018 · 1 comment


Copy link

jgebal commented May 23, 2018

The allows for execution of individual test procedure
With the below example I would expect it to work.

create or replace package test_pckg as

  --%context(My context)
  --%test(Expect failure)
  procedure mytest;

create or replace package body test_pckg as
  procedure mytest as

Running exec'test_pckg.mytest'); however raises:

ORA-20203: Suite not found
ORA-06512: at "UT3_LATEST_RELEASE.UT_RUNNER", line 133
ORA-06512: at "UT3_LATEST_RELEASE.UT", line 115
ORA-06512: at "UT3_LATEST_RELEASE.UT", line 306
ORA-06512: at "UT3_LATEST_RELEASE.UT", line 364
ORA-06512: at line 1

I would expect to be able to run single procedure from test package by simply passing package.procedure.

Another issue.
Accessing such procedure via suitepath is possible but undocumented, as suitepath is referencing context internal name context_1 rather than context description: My context.
Aith suitepath, accessing by context name would be except that the context name isn't visible to developer neither by looking at package spec nor when looking at test results.


  My context
    Expect failure [.005 sec]
Finished in .007233 seconds
1 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)
@jgebal jgebal added the bug label May 23, 2018
@jgebal jgebal added this to the 3.1.2 milestone May 23, 2018
Copy link

Hi Jacek. Jfyi, this looks like the same problem i wrote a comment about in #674.

p.s. and thanks for the amazing framework!

jgebal added a commit that referenced this issue Jun 7, 2018
Changed context naming (context name can be now explicit)
Context description is now only set from `--%displayname` annotation
Resolves #679
Resolves #674

Fixed most of compiler-warnings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants