Skip to main content

Posts

Showing posts with the label jasmine

Integrating jasmine into Visual Studio 2010/2011 beta

Following on from my previous post about testing javascript with jasmine. I was interested to explore integration into visual studio 2010 so I could run them along side test written in another language like C#. I found the VS 2010 extension Chutpah (pronounced  'hutz-pah'). This got me up and running with the ability to run test manually and to my surprised it worked by only have the SpecRunner.html file open. I didn't a csproj or sln file containing the javascript, it's clever enough to resolve all dependencies: Test results are render in the output window of VS 2010: This is good and I appreciate the work someone has done to get this far but I want more... I want integration into Resharper... A quick squizz on the inter'webs and I end posting a request on jetBrains forum , it looks like support is coming in R# 7. Then I thought lets check out the current beta and see, so off I go and boot Win8 and install R#7 beta and see if it's there yet... ...

Playing around with jasmine

I believe like a lot of devs that javascript is going to become more prevalent in a lot if not all areas of application development, whether that be with a server side framework like  node.js or client side with frameworks like backbone.js & knockout.js . I've built a couple of sites with backbone and I'm very interested in what Derik Bailey is doing with marionette , but with all my investigations into backbone I haven't as yet put any of the javascript I've written under as serious testing strategy. A quick search for a BDD style testing framework lead me to jasmine , I've heard good things and I thought I'd give it ago. What to put under test with jasmine? Previously I implemented a simple undo-redo framework for .Net called  undoable.net , this was pushed out to GitHub and I thought I'd port this to javascript. The important issue here is not the ported-code but how easy I found it to get jasmine up and running. First off downloaded...