v0.6 feature: ReSharper integration

7 views
Skip to first unread message

Dave F

unread,
Aug 17, 2010, 6:08:11 PM8/17/10
to StorEvil
A feature I've been working on is ReSharper integration.. that is,
I've created a runner that integrates with ReSharper and allows
running or debugging.

This includes a much-asked-for feature: you can set breakpoints in
your plaintext files and inspect the context classes, step through,
etc.

Here are the current limitations:

- requires ReSharper 5.1 (sorry, it is just too much work at this time
for me to test multiple R# versions).
- I've tested with VS2010, but I am _guessing_ it will work with 2008.
- Does not support dotCover coverage at the moment, which I think is
due to some AppDomain shenanigans, but I am trying to get it working
for the release.
- This will probably not have an installer at first... it will require
some manual steps to install.

Dave

Dave F

unread,
Aug 17, 2010, 6:30:05 PM8/17/10
to StorEvil
Another note:

Since StorEvil execution/debugging will be integrated with ReSharper,
I am considering removing the following features from StorEvil:

- the nunit command

This is a relic of the days before StorEvil had its own runner. It
generates NUnit test fixtures that call into the StorEvil engine. In
the really old days (~2.5 years ago) it used to generate actual C#
code that invoked the context class methods directly... which in
retrospect was admittedly insane.

- The custom tool

This is a poorly-documented Custom Tool that integrates with Visual
Studio to generate an NUnit fixture for each story file.
Basically, if you have used SpecFlow, it works similarly to that.
Previous to the ReSharper integration, this was the easiest way to set
a breakpoint and debug your storevil specs.

- The debug command

This is a command that is very similar to the execute command, except
that it generates an assembly in memory with debug information that
allows setting a breakpoint in your scenarios.

-------
Now that there is an alternate runner (ReSharper) that supports
debugging as well as selection of tests to run, I'd like to get rid of
the maintenance burden of these pieces of StorEvil. Let me know if
this is is a problem.

Note: this will not happen in v0.6... it will be at least one more
version before these are potentially removed.

Dave




Dave F

unread,
Aug 22, 2010, 4:21:00 PM8/22/10
to StorEvil
The ReSharper runner is up in master on github if you'd like to play
with it.

I wrote a bit of documentation on how to build, install, etc. here:

http://wiki.github.com/davidmfoley/storevil/resharper-integration

I've only tested it in my development VM (VS 2010/Win7 x64) thus far.
It _should_ work on other platforms and with VS 2008.

Let me know if you try it out in other environments.

Cheers
Dave

Dave F

unread,
Aug 23, 2010, 4:55:17 PM8/23/10
to StorEvil
One other note for those following along at home:

I added msbuild targets to build and install/uninstall the ReSharper
runner:

msbuild default.build /t:InstallReSharper
msbuild default.build /t:UninstallReSharper

So, if you're building StorEvil from source, this provides a very easy
way to check out the ReSharper runner.

Cheers
Dave
Reply all
Reply to author
Forward
0 new messages