Skip to content

Doctest does not work properly with namespaces #230

@skycaptain

Description

@skycaptain

Calling doctest directly on a file works fine:

>> doctest src/matlab/+myPackage/getVersion.m
Doctest v0.7.0+: this is Free Software without warranty, see source.

src/matlab/+myPackage/getVersion.m ...................... PASS    2/2   

Summary:

   PASS    2/2   

1/1 targets passed, 0 without tests.

However, when being called on a parent folder doctest suddenly does not find the tests:

>> doctest src/matlab/+myPackage -nonrecursive
Doctest v0.7.0+: this is Free Software without warranty, see source.

src/matlab/+myPackage/
  getVersion.m ......................................... NO TESTS

Summary:

   PASS    0/0   

1/1 targets passed, 1 without tests.

I'm using Matlab and the latest octave-doctest from master:

MATLAB Version: 9.7.0.1190202 (R2019b)
Operating System: Mac OS X  Version: 10.14.6 Build: 18G95 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions