|
From: | Andrew Janke |
Subject: | Re: Unit tests |
Date: | Tue, 5 Mar 2019 02:56:54 -0500 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 |
On 3/5/19 2:46 AM, Pavel Hofman wrote:
As of classes - I read that octave GUI does not support breakpoints in class methods. Perhaps the new version has it already implemented, not tested yet. I need breakpoints in GUI for development, being spoilt by advanced IDEs for regular languages :-)
I hear ya. No, breakpoints in class methods are still unimplemented as far as I know. I still debug them by manually inserting "keyboard" statements. So stick to lots of function .m files for now. :)
I think you want runtests() instead of test() here. test() tests a single function or class; runtests() runs a suite of tests from one or more directories.Yes, runtests works great, thanks.
You may also be interested in my own Testify for Octave project (https://github.com/apjanke/octave-testify). It's an enhanced unit test (BIST) interface that provides nicer summary info and stuff when running tests on directories containing multiple source files. If there's demand for it, I'll see about adding an xUnit framework port.
Cheers, Andrew
[Prev in Thread] | Current Thread | [Next in Thread] |