Closed apjanke closed 5 years ago
Done in https://github.com/apjanke/octave-testify/commit/5defca4111fff6757440c67da23dab1c2bc7cde4, but waiting to hear from collaborators about what they think of the new names.
Don't care too much :)
__run_test_suite__
should go away, IMHO (or become a very thin layer around runtests2).
I think runtests2 and test2 should converge, to test2
.
So how about testng
for "next gen"?
I'm not a big fan of "ng" or "new" for names, because they don't age well. If you later make another implementation, then the "new" one is actually an old one.
I think runtests2 and test2 should converge, to test2.
I'm not sure about this. They work at different levels: test2
runs tests in a single file, outputting detailed results for those tests. runtests2
discovers and runs tests for multiple files, with a coarser-grained aggregate results output. I'd rather deal with that using composition than a bunch of behavior switches in a single implementation.
Maybe they converge at the interface level, and just have separate implementation objects/functions for the two operational levels.
Maybe they converge at the interface level, and just have separate implementation objects/functions for the two operational levels.
+1 User experience is "I want to test foo", where foo is function, dir, class, namespace, package, ...
Cool.
One issue is that the existing test
and runtests
and their signatures are part of the public Octave API. We may have to take a breaking change on that if we want to merge them. I think if we merge them into test
, the basic calling forms of test
would still work; you'd just get additional calling forms. And we could leave a runtests
wrapper in place for a while that just issues a deprecation warning and passes the call to test
. But I'm not sure.
Let's take the discussion on merging the functions over to #46. I'd like to close this issue out for Milestone 0.3.0, since this was initially just about avoiding the name collisions.
Closing as fixed since the rename has landed.
I pushed this out in v0.3.0, just released now. https://github.com/apjanke/octave-testify/releases/tag/v0.3.0
We are currently providing
test
,runtests
, and__run_test_suite__
functions that shadow Octave's own functions. Since Testify is turning into a longer-lived project, this is no longer appropriate. Rename them so they can coexist side by side with Octave's built-in test functions.This is a high priority change, so it'll get its own minor release: 0.3.0.