Skip to content

Cannot use or export using Cobertura on CoverageResult #65

@Gwayaboy

Description

@Gwayaboy

Describe the bug
I am able to run and get coverage result using Get-CoverTSql PowerShell wrapper function.
Source has a the public string Cobertura(string packageName = "sql", Action customCoverageUpdater = null) line 315 but the method is not visible when consuming in powershell

To Reproduce
Steps to reproduce the behavior:

  1. Run $result = Get-CoverTSql "$openCoverSourceFolder\SQLCover.dll" $connectionString $databaseName $runtSQLtTestsCmd
  2. Try to run $result.Cobertura()
  3. See error
    Method invocation failed because [SQLCover.CoverageResult] does not contain a method named 'Cobertura'.
    At line:1 char:1
  • $result.Cobertura()
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : MethodNotFound
    
    

Expected behavior
$result = Get-CoverTSql "$openCoverSourceFolder\SQLCover.dll" $connectionString $databaseName $runtSQLtTestsCmd
$result.Cobertura() | Out-File $path
$result.SaveSourceFiles($reportPath)

@GoEddie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions