sMock & SUnitToo(verage)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

sMock & SUnitToo(verage)

Steffen Märcker
Hi,

today I've played a bit with sMock. But it doesn't play nice with  
SUnitToo(verage) (or vice versa). A test fails as soon as a proxy object  
ist constructed using #proxy. Unfortunately I couldn't figure out what's  
happening. Have you experienced that problem too or do you have any  
suggestions?

Thanks in Advance,
Steffen
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: sMock & SUnitToo(verage)

Steffen Märcker
Hi,

I've digged a bit deeper - a short stack trace is attached. Catching the  
Exception with
        [mock proxy] on: Exception do: [self halt]
reveals that the method
        SUnit.Coverage.MethodCoverage>>id:send:selector:do:
fails while sending
        receiver class.
where receiver is a SMock.Proxy. That surprises me a bit since evaluating
        (SMock.Mock new) proxy class
does not fail on its own. Any ideas?

Regards, Steffen




Am 21.06.2011, 20:29 Uhr, schrieb Dennis Schetinin <[hidden email]>:

> Can you provide a stack trace?
>
> 2011/6/21 Steffen Märcker <[hidden email]>
>
>> Hi,
>>
>> today I've played a bit with sMock. But it doesn't play nice with
>> SUnitToo(verage) (or vice versa). A test fails as soon as a proxy object
>> ist constructed using #proxy. Unfortunately I couldn't figure out what's
>> happening. Have you experienced that problem too or do you have any
>> suggestions?
>>
>> Thanks in Advance,
>> Steffen
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>
>
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

StackTrace.txt (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: sMock & SUnitToo(verage)

Steffen Märcker
In reply to this post by Steffen Märcker
Hi,

last week I've found a simple fix that brings both tools together. Just  
change the first line in SMock.Proxy>>doesNotUnderstand from
        stub := mock findMethodStubMatching: aMessage.
to
        stub := mock ifNotNil: [mock findMethodStubMatching: aMessage].
I'll publish both fixed to the public repository once I've got access.

Regards, Steffen


Am 21.06.2011, 20:01 Uhr, schrieb Steffen Märcker <[hidden email]>:

> Hi,
>
> today I've played a bit with sMock. But it doesn't play nice with
> SUnitToo(verage) (or vice versa). A test fails as soon as a proxy object
> ist constructed using #proxy. Unfortunately I couldn't figure out what's
> happening. Have you experienced that problem too or do you have any
> suggestions?
>
> Thanks in Advance,
> Steffen
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Error installing VW 7.8 on OSX 10.6.2

Carl Gundel
In reply to this post by Steffen Märcker
Accepting the defaults when trying to install from CDROM I get the following popup error as soon as installation begins:

Unhandled exception: Permission denied

An error occurred in the application.
The application will now terminate.
A diagnostic dump of the error could not
be made, or the dump was incomplete.

Help?  Thanks.

-Carl Gundel
http://www.libertybasic.com
http://www.runbasic.com
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Error installing VW 7.8 on OSX 10.6.2

Carl Gundel
It didn't help to reboot the machine or use sudo open to launch the installation app from terminal.

-Carl

On Jun 30, 2011, at 10:00 PM, Carl Gundel wrote:

> Accepting the defaults when trying to install from CDROM I get the following popup error as soon as installation begins:
>
> Unhandled exception: Permission denied
>
> An error occurred in the application.
> The application will now terminate.
> A diagnostic dump of the error could not
> be made, or the dump was incomplete.
>
> Help?  Thanks.
>
> -Carl Gundel
> http://www.libertybasic.com
> http://www.runbasic.com
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: Error installing VW 7.8 on OSX 10.6.2

Carl Gundel-2
In reply to this post by Carl Gundel
Ah, I've figured it out.  For some reason my Mac is not allowing me
write access to the user folder the same name as my user account.  If
I log in as a different user I can install VW7.8 without problem.  Of
course this makes other things difficult.

-Carl

On Thu, Jun 30, 2011 at 10:00 PM, Carl Gundel <[hidden email]> wrote:

> Accepting the defaults when trying to install from CDROM I get the following popup error as soon as installation begins:
>
> Unhandled exception: Permission denied
>
> An error occurred in the application.
> The application will now terminate.
> A diagnostic dump of the error could not
> be made, or the dump was incomplete.
>
> Help?  Thanks.
>
> -Carl Gundel
> http://www.libertybasic.com
> http://www.runbasic.com
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc