Closed cbm755 closed 5 years ago
How about returning a T/F boolean if nargout == 1? And NFAIL for nargout > 1?
nargout == 1
NFAIL
nargout > 1
-- SUCCESS = __pkg_test__ (...) -- [NFAIL, __INFO__] = __pkg_test__ (...)
That's what we do in Doctest. In principle one can if (__pkg_test__) to mean "if successfully ran tests".
if (__pkg_test__)
I did this for runtests in #38.
runtests
Consistency is good. Let's do it.
Done in https://github.com/apjanke/octave-testify/commit/c8d7b93509118b72577ebefa756ca2e0a2646720.
How about returning a T/F boolean if
nargout == 1
? AndNFAIL
fornargout > 1
?That's what we do in Doctest. In principle one can
if (__pkg_test__)
to mean "if successfully ran tests".