Skip to content

Test execution by procedure name invokes all procedures with similar names #510

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

Closed
jgebal opened this issue Nov 3, 2017 · 1 comment
Closed

Comments

@jgebal
Copy link
Member

jgebal commented Nov 3, 2017

Example:

create or replace package tst_part is
  --%suite
  
  --%test
  procedure test_1;
  
  --%test
  procedure test_12;
end;
/

create or replace package body tst_part is
  procedure test_1 is
  begin
    ut.expect(1).to_equal(1);
  end;
  procedure test_12 is
  begin
    ut.expect(1).to_equal(2);
  end;
end;
/

exec ut.run('tst_part.test_1');

Results in:

tst_part
  test_1 [.006 sec]
  test_12 [.099 sec] (FAILED - 1)
 
Failures:
 
  1) test_12
      Actual: 1 (number) was expected to equal: 2 (number) 
      at "UT3_TESTER.TST_PART", line 8 ut.expect(1).to_equal(2);
      
       
Finished in .109422 seconds
2 tests, 1 failed, 0 errored, 0 disabled, 0 warning(s)

Procedure test_12 gets executed while it should not.

The functionality works correctly, when invoking packages.
So if I create a copy of package tst_part and name it tst_part_1, calling: exec ut.run('tst_part'); is working fine and only procedures from package tst_part are executed.

@jgebal jgebal added the bug label Nov 3, 2017
@jgebal jgebal modified the milestone: v3.1.0 Nov 3, 2017
@jgebal jgebal removed the bug label Nov 3, 2017
@jgebal
Copy link
Member Author

jgebal commented Nov 3, 2017

False-positive. It was already reported in #468 and fixed by #469.

@jgebal jgebal closed this as completed Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant