← 输入框|github.com|刷新
Skip to content

Annotation that goes to test report is not stopped by closing parenthesis #1010

Closed

Description

@alexeyhimself

Describe the bug
When you write comment after annotation, then this comment becomes the part of test report as well.

Provide version info
v3.1.8.3190

Information about client software
PLSQL Developer

To Reproduce
Steps to reproduce the behavior:

  1. Compile procedures with comments:
create or replace package test_demo is
 
  -- %suite (Demo suite)                 this suite name will be used in test report (see below)

  -- %test (Demo test case success)      -- this test case name will be used in test report (see below)
  procedure demo_test_pass;
 
  -- %test (Demo test case failure)      -- this test case name will be used in test report (see below)
  procedure demo_test_failure;
 
end;
/
 
create or replace package body test_demo is
 
  procedure demo_test_pass is
  begin
    ut.expect(1).to_equal(1);
  end;
 
  procedure demo_test_failure is
  begin
    ut.expect(2).to_equal(1);
  end;
 
end;
/
  1. Run utPLSQL:
select * from table(ut.run());
/
  1. Scroll down to '....'
  2. See error

Actual behavior
Comments after closing parenthesis became a part of test report:

Demo suite)                 this suite name will be used in test report (see below
  Demo test case success)      -- this test case name will be used in test report (see below [.128 sec]
  Demo test case failure)      -- this test case name will be used in test report (see below [.018 sec] (FAILED - 1)
	 
Failures: 
  1) demo_test_failure

Expected behavior
Closed annotation parenthesis stops annotation:

Demo suite
  Demo test case success [.128 sec]
  Demo test case failure [.018 sec] (FAILED - 1)
	 
Failures: 
  1) demo_test_failure

Additional context
I didn't expect that comment will become the part of test report

Activity

  1. jgebal commented on Oct 26, 2019

    @jgebal
    Member

    Comments inside annotations are not supported.
    If you need to add comment, add it in line before annotation.
    Whole line of annotation is considered annotation.

  2. added this to the 3.1.9 milestone on Nov 6, 2019
  3. added a commit that references this issue on Nov 6, 2019
    c724493
  4. jgebal commented on Nov 6, 2019

    @jgebal
    Member

    Updated documentation will be part of release 3.1.9.
    https://github.com/utPLSQL/utPLSQL/blob/release/v3.1.9/docs/userguide/annotations.md

    Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions