I stumbled across this idea when Markus Gaelli chose it as a PhD topic about ten years ago (man, I'm old). The main idea was not to provide tests, but examples that happened to have assertions. The goal was twofold: (1) provide live documentation with real objects, (2) provide another way of composing tests.

The project did not really come to fruition, but I still think this is highly interesting topic. Part of the ideas were later implemented in Phexample (http://www.smalltalkhub.com/#!/~Phexample/Phexample/) and JExample (http://scg.unibe.ch/research/jexample).

Cheers,
Doru


On Sun, Nov 17, 2013 at 3:08 PM, Andy Burnett <andy.burnett@knowinnovation.com> wrote:
I have just come across the Pyret language. It looks interesting, but the part which particularly caught my interest was the way that they had built the unit tests directly into the classes, rather than having separate test classes. �

I think this is an interesting idea. It seems as though it would be easier to manage writing tests if everything were in one location. And this - might - mean that people were more likely to write tests.

Has anyone else looked at this, and have an opinion on whether it would be a good addition to Pharo 4/5/X?

Cheers
Andy



--
www.tudorgirba.com

"Every thing has its own flow"