Skip to content

Test results are messed up under specific conditions. #1060

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
just-doit opened this issue Mar 24, 2020 · 2 comments
Closed

Test results are messed up under specific conditions. #1060

just-doit opened this issue Mar 24, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@just-doit
Copy link

To demonstrate the problem I use the following two packages.

CREATE OR REPLACE PACKAGE ut_abc
IS
   -- %suite
   -- %suitepath(main.abc)

   -- %test
   PROCEDURE ut_test_01;
END ut_abc;
/

CREATE OR REPLACE PACKAGE BODY ut_abc
IS
   PROCEDURE ut_test_01
   AS
   BEGIN
      ut.expect(TRUE).to_be_true;
   END;
END ut_abc;
/

CREATE OR REPLACE PACKAGE ut_abc_def
IS
   -- %suite
   -- %suitepath(main.abc_def)

   -- %test
   PROCEDURE ut_test_01;
END ut_abc_def;
/

CREATE OR REPLACE PACKAGE BODY ut_abc_def
IS
   PROCEDURE ut_test_01
   AS
   BEGIN
      ut.expect(TRUE).to_be_true;
   END;
END ut_abc_def;
/

The result would correctly look like this:

main
  abc_def
    ut_abc_def
      ut_test_01 [,002 sec]
  abc
    ut_abc
      ut_test_01 [,001 sec]
 
Finished in ,006906 seconds
2 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)

But if you set NLS_SORT to GERMAN you will get:

main
  abc_def
    ut_abc
      ut_test_01 [,001 sec]
    ut_abc_def
      ut_test_01 [,001 sec]
  abc
 
Finished in ,006294 seconds
2 tests, 0 failed, 0 errored, 0 disabled, 0 warning(s)

BR
Dirk

@jgebal
Copy link
Member

jgebal commented Mar 24, 2020

Thanks for reporing this issue amd getting to the bottom of problem (NLS_SORT)
It's an interesting issue.

Will look into fixing that.

@jgebal jgebal self-assigned this Mar 24, 2020
@jgebal jgebal added the bug label Mar 24, 2020
jgebal added a commit that referenced this issue Mar 25, 2020
@jgebal jgebal added this to the 3.1.11 milestone Mar 25, 2020
jgebal added a commit that referenced this issue Mar 25, 2020
Resolves issue #1060 with suites not properly built with GERMAN (non-…
@jgebal
Copy link
Member

jgebal commented Mar 25, 2020

It's resolved in develop branch now.
Will be released as part on v3.1.11.

Thakns again fror finding and reporting this issue.

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

No branches or pull requests

2 participants