[Pharo-project] Mocketry?
Hi! Following some discussion about Mocketry, I wanted to know more about it. I've found http://www.cincomsmalltalk.com/publicRepository/Mocketry(Bundle).html and the squeaksource project. I read the tests but this is a bit cryptic. In 5 minutes, I couldn't find what it was exactly about. Any good url that google does not know about? Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hello See squeaksource wiki tab http://www.squeaksource.com/Mocketry.html And tests with class name like Acceptance is good I think. 2011/5/27 Alexandre Bergel <alexandre.bergel@me.com>
Hi!
Following some discussion about Mocketry, I wanted to know more about it. I've found http://www.cincomsmalltalk.com/publicRepository/Mocketry(Bundle).html
and the squeaksource project. I read the tests but this is a bit cryptic.
In 5 minutes, I couldn't find what it was exactly about. Any good url that google does not know about?
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Thanks Denis Alexandre On 27 May 2011, at 09:12, Denis Kudriashov wrote:
Hello
See squeaksource wiki tab http://www.squeaksource.com/Mocketry.html
And tests with class name like Acceptance is good I think.
2011/5/27 Alexandre Bergel <alexandre.bergel@me.com> Hi!
Following some discussion about Mocketry, I wanted to know more about it. I've found http://www.cincomsmalltalk.com/publicRepository/Mocketry(Bundle).html
and the squeaksource project. I read the tests but this is a bit cryptic.
In 5 minutes, I couldn't find what it was exactly about. Any good url that google does not know about?
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
BTW, I've provided a tiny example in VW thread: http://forum.world.st/Mocking-in-Unit-Tests-td3552082.html#a3554271 2011/5/27 Alexandre Bergel <alexandre.bergel@me.com>
Thanks Denis
Alexandre
On 27 May 2011, at 09:12, Denis Kudriashov wrote:
Hello
See squeaksource wiki tab http://www.squeaksource.com/Mocketry.html
And tests with class name like Acceptance is good I think.
2011/5/27 Alexandre Bergel <alexandre.bergel@me.com> Hi!
Following some discussion about Mocketry, I wanted to know more about it. I've found http://www.cincomsmalltalk.com/publicRepository/Mocketry(Bundle).html
and the squeaksource project. I read the tests but this is a bit cryptic.
In 5 minutes, I couldn't find what it was exactly about. Any good url that google does not know about?
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Dennis Schetinin
Note there's an HelpSystem book loaded with ConfigurationOfMocketry. Laurent. On Mon, May 30, 2011 at 4:26 AM, Dennis Schetinin <chaetal@gmail.com> wrote:
BTW, I've provided a tiny example in VW thread: http://forum.world.st/Mocking-in-Unit-Tests-td3552082.html#a3554271
2011/5/27 Alexandre Bergel <alexandre.bergel@me.com>
Thanks Denis
Alexandre
On 27 May 2011, at 09:12, Denis Kudriashov wrote:
Hello
See squeaksource wiki tab http://www.squeaksource.com/Mocketry.html
And tests with class name like Acceptance is good I think.
2011/5/27 Alexandre Bergel <alexandre.bergel@me.com> Hi!
Following some discussion about Mocketry, I wanted to know more about it. I've found http://www.cincomsmalltalk.com/publicRepository/Mocketry(Bundle).html
and the squeaksource project. I read the tests but this is a bit cryptic.
In 5 minutes, I couldn't find what it was exactly about. Any good url that google does not know about?
Cheers, Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Dennis Schetinin
I read that Mocketry is compatible with the SUnit test runner. How would one use it like this? call #verify at the end of a TestCaseSubclass>>testXxx? Thanks. Sean -- View this message in context: http://forum.world.st/Mocketry-tp3555258p3676822.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
It means you can just run Mocketry tests with SUnit test runner, no modifications needed. Just as with "ordinary" tests, all verifications are performed "at place": SomeObjectTests >> testDoesSomething * 2 + 2 should equal: 4. *"Here it passes" * 2 + 2 should equal: 5. *"Here it fails" "Nothing else is needed" â¦Or, did I misunderstood your question? 2011/7/19 Sean P. DeNigris <sean@clipperadams.com>
I read that Mocketry is compatible with the SUnit test runner. How would one use it like this? call #verify at the end of a TestCaseSubclass>>testXxx?
Thanks. Sean
-- View this message in context: http://forum.world.st/Mocketry-tp3555258p3676822.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Dennis Schetinin
Dennis Schetinin wrote:
It means you can just run Mocketry tests with SUnit test runner
I mean how does one use mocks specifically with SUnit. For example, from the HelpBook: [:mock1 :mock2 | [mock1 someMessage. mock2 someMessage2] should strictly satisfy: [mock1 someMessage willReturn: 'some'. mock2 someMessage2]] runScenario Where do I put that? Drop the whole thing including the #runScenario into a #testXxx or what? Thanks. Sean -- View this message in context: http://forum.world.st/Mocketry-tp3555258p3677175.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
Yes, you can write it this way: SomeTests >> testXXX [:mock1 :mock2 | [mock1 someMessage. mock2 someMessage2] should strictly satisfy: [mock1 someMessage willReturn: 'some'. mock2 someMessage2] ] runScenario 2011/7/19 Sean P. DeNigris <sean@clipperadams.com>
Dennis Schetinin wrote:
It means you can just run Mocketry tests with SUnit test runner
I mean how does one use mocks specifically with SUnit. For example, from the HelpBook:
[:mock1 :mock2 | [mock1 someMessage. mock2 someMessage2] should strictly satisfy: [mock1 someMessage willReturn: 'some'. mock2 someMessage2]] runScenario
Where do I put that? Drop the whole thing including the #runScenario into a #testXxx or what?
Thanks. Sean
-- View this message in context: http://forum.world.st/Mocketry-tp3555258p3677175.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Dennis Schetinin
participants (5)
-
Alexandre Bergel -
Denis Kudriashov -
Dennis Schetinin -
laurent laffont -
Sean P. DeNigris