utPLSQL-cli icon indicating copy to clipboard operation
utPLSQL-cli copied to clipboard

Add support for coverage file mapping options in a separate file

Open jgebal opened this issue 8 years ago • 1 comments

To complete the mapping of utPLSQL API we need to provide ability to define file mapping options as described in documentation

The static file mapping should be optionally provided as a JSON file to the command line:

utplsql run ... -file_mappings=mappings.json

The JSON could be of following format:

{
  "source_file_mappings": [
    {
      "file_name": "sources/hr/award_bonus.prc",
      "object_owner": "HR",
      "object_name": "AWARD_BONUS",
      "object_type": "PROCEDURE"
    },
    {
      "file_name": "sources/hr/betwnstr.fnc",
      "object_owner": "HR",
      "object_name": "BETWNSTR",
      "object_type": "FUNCTION"
    }
  ],
  "test_file_mappings": [
    {
      "file_name": "test/hr/ut_award_bonus.pkb",
      "object_owner": "HR",
      "object_name": "ut_award_bonus",
      "object_type": "PACKAGE BODY"
    },
    {
      "file_name": "test/hr/ut_betwnstr.pkb",
      "object_owner": "HR",
      "object_name": "ut_betwnstr",
      "object_type": "PACKAGE BODY"
    }
  ]
}

jgebal avatar Jul 11 '17 23:07 jgebal

I would consider this to be of a low priority for now

jgebal avatar Jul 11 '17 23:07 jgebal