Skip to content

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

@alexeyhimself

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions