More MSpec – ReSharper love
Visual Studio August 27th, 2010This is a follow up to the post about how ReSharper and Visual Studio messes with your MSpec specifications.
Resharper has built in support for naming inspections which is great for consistency if everyone in the team follows the same rules, but sometimes you just don’t want it. The most common scenario is when writing BDD specs (with tools like Machine.Specifications or MSpec for short).
This is a pretty common specification in our current project, and the class name might seem strange if you haven’t done BDD before. But the beauty of this is that the testing framework generates reports with this convention which is extremely readable for non-techincal people.
It will read something like this:
When an already handled customer is processed
– the customer should not be processed further
Or whatever you want to check. Our rake task always generates a html-page with all our specifications in a nice and readable format (more on that in a later post).
Well, back on topic! How do we tell Resharper not to scream WARNING, WARNING! at us all the time. We ARE naming things like this on purpose!
As everything always has been done by someone before, I’m only going to give you a link to the solution: http://www.aspiringcraftsman.com/2010/02/resharper-naming-style-for-machine-specifications/
You can add as many naming styles as you like to suit your specifications.
Happy mspeccing!
//J
PS. If you like the Visual Studio theme I’m using, go grab it from my repository over at github. Be sure to read the readme for the right fonts, otherwise the theme will hurt your eyes and probably your babies or kittens too.
August 27th, 2010 at 15:36
So, BDD, is it good?
August 27th, 2010 at 16:13
It sure suites us for the moment. It’s not the mother of all *** Driven Design, but it feels nice to have your applications behaviour in code but in (kind of) plain english.
That said, it shouldn’t substitute things like Unit Tests, but rather complement it. Our struggle right now is to distinguish what’s better suited for unit testing and what’s not.
August 27th, 2010 at 17:00
Interesting topic.
The purpose of the test case seems to be at a very high level. So I suppose the content of the test case should be at an appropriately (similarly) high level?
Implementation details don’t seem to go along with a test case at “user story” level, amirite?
(I’m not saying that the content of the test case in the blog is too low-level, but I suppose it could become an issue.)
October 3rd, 2012 at 12:02
It’s in reality a nice and helpful piece of information. I’m happy that you simply shared this useful info with us. Please stay us informed like this. Thank you for sharing.
January 16th, 2013 at 01:40
This product Aquaponics 4 You is actually astonishingly an easy task to create and may, probably,
throw open an entirely new world for your requirements when it comes to organic harvesting.
Your manual has been all to easy to obtain along with
available immediately about payment, that
you can do by under-going Clickbank account that can permit you to takes
place plastic card or perhaps PayPal.
In terms of what you get for your money, you’ll find 33 extremely illustrative webpages, complete with diagrams demonstrating a variety of aquaponic yard ideas. There’s practically nothing still left to figure out all on your own because manual is incredibly thorough. The playback quality will be of fine high quality and very helpful in demonstrating how to creating your garden.
There’s even customer service in case you have something. You can’t forget about those appreciated tiny bonus publications, either. They merely will be worth the complete value for your information, and you also obtain individuals at no cost!
If you’re into gardening and also have always aspired to try aquaponic gardening, when they are not give this specific book a shot.
Even though, for some reason, you decide seeing the actual guide book which aquaponics isn’t for you personally, it is possible to countless associated with gardening ideas in which you’ll have the ability to utilization in regular gardening. Overall, Aquaponics 4 You can not certainly be a squander of your income or even moment.
March 8th, 2013 at 03:43
I am regular reader, how are you everybody? This post posted at this web page
is truly fastidious.
April 10th, 2013 at 06:11
Other countries censor content and not just rogue regimes such as the Iranian mullocracy. Poor people! http://www.baidu.com