Hi,
the good thing about the current practice of putting tests into another
package/application is that you can separate them from your actual code
for deployment (packaging), but you can also add them to your deliverable.
If you mix code and tests, there may be good points about that, but in
the end the limiting factor is the developer's discipline/motivation.
And to some extent the quality of tools. The current state of test
runners in most Smalltalk environments is not too bad.
So I guess we need to educate people more towards writing tests, not
change the place where they belong.
Putting tests somewhere else than other Smalltalk's do would also start
build hurdles to portability of tools between them. Would be a pity,
wouldn't it?
Just my 2 cents
Joachim
Am 17.11.13 19:58, schrieb Andy Burnett:
Esteban said
<<<
Hi,
It does not really matters where you put the test.
What matters is to have the tools that show them properly, and we are
going in that direction. We already have ways to "jump to tests" in
Nautilus, and we will continue improving that to show them together
(for example).
But I do not think the tests need to be *in* the class definition to
have same level of interoperation.
Esteban
>>>
I agree. The actual architecture doesn't matter. The critical factor
is making it as easy as possible to write/navigate tests. I didn't
know about the Nautilus features. I shall have to go and experiment.
Also, thinking about Doru's point. I wonder if we could write
tests/examples in the comments section of code. It might be an
interesting addition
--
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel mailto:jtuc...@objektfabrik.de
Fliederweg 1 http://www.objektfabrik.de
D-71640 Ludwigsburg http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1