Skip to content

Coverage fails with Octave classes #24

@TimurDela

Description

@TimurDela

When I test Octave functions, the coverage report works well. but if I test classes (both with the old '@' syntax or the newer classdef) the tests run successfully but the report is empty:

<classes>
<class name="polynomial" filename="myClasses/polynomial.m" line-rate="1.000" branch-rate="0.0">
<methods></methods><lines>
</lines>
</class>
<class name="square" filename="myFunctions/square.m" line-rate="1.000" branch-rate="0.0">
<methods></methods><lines>
<line number="2" hits="1" branch="false"/>
</lines>
</class>

It is also a bit weird that myFunctions/square.m has method tags since it is not a class but OK.

Or am I doing something wrong? It would be nice to include a working example in the repo.

Metadata

Metadata

Assignees

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