GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Coverage report is generated without coverage data in v3.1.7 · Issue #165 · utPLSQL/utPLSQL-cli

Coverage report is generated without coverage data in v3.1.7 #165

New issue
Copy link
New issue
Copy link
Closed
Closed
Coverage report is generated without coverage data in v3.1.7#165
Copy link

Description

@felipebz
felipebz
opened on Oct 16, 2019
Issue body actions

Hi!

Somehow I missed the release of utPLSQL-cli v3.1.7 (which contains the fix for #143) and I'm testing it now... But when I run the command utplsql run <db> -f=ut_coverage_sonar_reporter -o="coverage.xml" -source_path=src the output is generated without any coverage data. It works correctly in v3.1.6.

This issue isn't specific to ut_coverage_sonar_reporter, it can be reproduced with all coverage reporters.

By the way I noticed you're using v3.1.6 to generate these reports in the utPLSQL project, I think you'll have the same issue with 3.1.7. ;-)

How to Reproduce

  1. Compile betwnstr.sql and test_betwnstr.pkg in the database
  2. Create a src directory with a file named betwnstr.fnc
  3. Run utplsql run <connection> -p=test_betwnstr -f=ut_coverage_sonar_reporter -o="coverage.xml" -source_path=src

Expected behavior

The coverage.xml file generated by utplsql-cli should contain the coverage data, e.g.:

<?xml version="1.0" encoding="WINDOWS-1252"?>
<coverage version="1">
<file path="src\betwnstr.fnc">
<lineToCover lineNumber="2" covered="true"/>
<lineToCover lineNumber="4" covered="true"/>
<lineToCover lineNumber="5" covered="true"/>
<lineToCover lineNumber="7" covered="true"/>
</file>
</coverage>

Current behavior

The file is created without coverage data:

<?xml version="1.0" encoding="WINDOWS-1252"?>
<coverage version="1">
</coverage>

Version info

utplsql-cli info <db>:

utPLSQL-cli 3.1.7-SNAPSHOT.local
utPLSQL-java-api 3.1.7.504
utPLSQL 3.1.8.3190

From utplsql-cli run (...):

###################### utPLSQL cli #######################
#                                                        #
#   utPLSQL-cli 3.1.7-SNAPSHOT.local                     #
#   utPLSQL-java-api 3.1.7.504                           #
#   Java-Version: 1.8.0_201                              #
#   ORACLE_HOME: null                                    #
#   NLS_LANG: BRAZILIAN PORTUGUESE_BRAZIL.WE8ISO8859P1   #
#                                                        #
#   Thanks for testing!                                  #
#                                                        #
##########################################################

Activity

  1. pesse commented on Oct 16, 2019

    @pesse
    pesse
    on Oct 16, 2019
    Member
    More actions

    Hey @felipebz - thanks for reporting.
    This is already fixed in the current develop branch (see #162), though there are some minor things to do before I can release 3.1.8
    I hope to be able until end of October

  2. felipebz commented on Oct 16, 2019

    @felipebz
    felipebz
    on Oct 16, 2019
    Author
    More actions

    Oh, I didn't search in the closed issues, my bad. 🤦‍♂

    Thanks for the quick response.

  3. felipebz
    closed this as completedon Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.