Sure, such kind of DSL is cute, What is the relation to http://www.squeaksource.com/SSpec/ ? http://www.smalltalkhub.com/#!/~dionisiy/Mocketry ? Nicolas 2013/1/23 Frank Shearar <frank.shearar@gmail.com>:
Well, of course, JUnit feels that way because of SUnit, but sure. RSpec-like testing languages read much more easily than #assert:, in my not so humble opinion.
frank
On 23 January 2013 10:04, Camillo Bruni <camillobruni@gmail.com> wrote:
check the project page for all examples and explanations:
http://smalltalkthoughts.blogspot.ch/2009/11/phexample-because-examples-expa... http://www.iam.unibe.ch/~akuhn/blog/2009/shoulda-use-this-in-pharo
to me this feels more like Smalltalk and less like Java ;)
On 2013-01-23, at 08:47, Nicolas Cellier <nicolas.cellier.aka.nice@gmail.com> wrote:
Who should assert then? From a certain POV, it does not seem that awfully unlogical to delegate this responsability to a TestCase. A TestCase is here to assert some rule.
Nicolas
2013/1/23 Camillo Bruni <camillobruni@gmail.com>:
for that we already have a fully working Phexample:
http://www.squeaksource.com/phexample.html
which I will push in 3.0, cause I never really liked #assert: and friends being sent to self. Furthermore we could finally build up decent messages!
On 2013-01-22, at 18:24, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
it would be nice to introduce the same syntax than Sunit
exp assert: exp2
[ exp ] shouldraise:
Stef
On Jan 21, 2013, at 4:41 AM, Benjamin wrote:
Hi guys,
I am attending a python lecture and discovered DocTest[1], and I was wondering if such a tool exists for Pharo ? :)
Ben