All,
I am pleased to release my first version of my IronRuby csproj runner
tool.
In short, it become obvious after trying to test a relatively large
project
that manually adding all the “requires” was going to be an absolute
pain.
So I decided to write a small app that reads in a .csproj and uses the
XML
and some reflection to gather in all the required assemblies. The
result is
an emited spec_helper.rb file so you can quickly load up your .net
environment for testing.
The basic syntax is:
rspec_project_runner.exe -T “target.csproj” -R -O “output/dir/path”
the -R is a recursive call so that if your target project has any other
project references it will walk them and emit a helper_spec file for
each
one. Otherwise it will just grab a copy of the assembly.
Please let me know if you run into any bugs or whatnot. I would love
the
feedback
Source:
http://github.com/andrewjwilson/IronRuby-Rspec-Csproj-Runner
Additionally, the spec folder has tests which actually test the .net
assemblies for the project. They aren’t all complete, but you can take
a
peek if you’d like
** In order to run the spec tests you have to copy the CmdParser.dll
into
the /bin/ folder of IronRuby itself.
Thanks,
Andrew