Working in Resharper but not in command line runner

161 views
Skip to first unread message

Emil C

unread,
Mar 4, 2012, 7:05:46 PM3/4/12
to machine_users
When I run my mspec test in Resharper test runner everything is green.

I'm trying to build in Mspec into my CI build.
When using the mspec-clr4.exe to run the test the application start up
does not to work.
My IoC don't get the registrations. I'm using Nancy in this case and
it's boostrapper loads a bunch of stuff.

What's the difference between the Reshaper runner and the command
line? How do I get around it?

Regards, Emil

Emil C

unread,
Mar 5, 2012, 4:12:47 AM3/5/12
to machine_users
Just to clarify.

The problem is that the Nancy Bootstrapper is not loaded when using
mspec-clr4.exe.
I think the bootstrapper is loaded when the Nancy assembly is loaded.

I'm guessing that Resharper loads all assemblies before it runs the
test. But not the command line runner.

Regards, Emil

Alexander Groß

unread,
Mar 5, 2012, 10:12:24 AM3/5/12
to machin...@googlegroups.com
What would cause the Nancy Bootstrapper to load in the first place?

Why not set up Nancy in an IAssemblyContext?

Note: ReSharper will run the IAC for every context, the command line will do
this once for each assembly - like the name suggest. See here:
https://github.com/machine/machine.specifications/issues/17

Alex
--
Alexander Groß
http://therightstuff.de/

> --
> You received this message because you are subscribed to the Google
> Groups "machine_users" group.
> To post to this group, send email to machin...@googlegroups.com.
> To unsubscribe from this group, send email to
> machine_user...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/machine_users?hl=en.

Emil C

unread,
Mar 5, 2012, 10:26:36 AM3/5/12
to machine_users
I've tried the loading assemblies in the IAC. Will try other ways to
start Nancy.

Would be nice to know what the difference between the resharper runner
conext and the console runner context is.

/Emil

On Mar 5, 4:12 pm, Alexander Groß <agr...@therightstuff.de> wrote:
> What would cause the Nancy Bootstrapper to load in the first place?
>
> Why not set up Nancy in an IAssemblyContext?
>
> Note: ReSharper will run the IAC for every context, the command line will do
> this once for each assembly - like the name suggest. See here:https://github.com/machine/machine.specifications/issues/17
>
> Alex
> --
> Alexander Großhttp://therightstuff.de/
>  smime.p7s
> 9KViewDownload

Emil C

unread,
Mar 6, 2012, 7:01:29 AM3/6/12
to machine_users
After a lot of digging.
I was running cached test in reshaper.

The problem was in the code after updating some dll:s

Everything is working fine now.

/Emil

Alexander Groß

unread,
Mar 6, 2012, 12:08:11 PM3/6/12
to machin...@googlegroups.com
Good to see it's working now!

Alex
--
Alexander Groß

Reply all
Reply to author
Forward
0 new messages