Closed apjanke closed 5 years ago
Looks like this is a problem with Testify, not doctest. When I try to reproduce with doctest alone, it works fine.
>> pkg install -forge financial io statistics
>> pkg load doctest
>> cd '/Users/janke/Library/Application Support/Octave.app/5.1.0/pkg/financial-0.5.3'
>> ls
>> doctest .
[...]
Summary:
FAIL 1/3
101/102 targets passed, 100 without tests.
>>
Works okay with just __test_pkgs__('financial', struct("doctest",true))
.
Aha! The doctest package itself is the first one to fail.
$ grep is_octave octave-testify-ForgePkgTester-2019-03-18_10-49-40/test_forge_pkgs.log
testify.ForgePkgTester: Error while testing package doctest: 'is_octave' undefined near line 19 column 5
testify.ForgePkgTester: Error while testing package financial: 'is_octave' undefined near line 19 column 5
testify.ForgePkgTester: Error while testing package fits: 'is_octave' undefined near line 19 column 5
Maybe I'm unloading the doctest package after testing it.
Running doctest on several of the packages fails with this error:
Log: test_forge_pkgs.log
Affected packages:
I turned doctest off by default in https://github.com/apjanke/octave-testify/commit/3640205e022cbbb44d2c6cea5e9b2962859ba652 because of this.
is_octave()
is a private function inside doctest. Maybe it's being called from aneval
context or something like that? Or maybe I'm accidentally unloading the doctest pkg during the tests?Figure out a simpler repro so we can report it to the doctest project.