How to run Jasmine tests as nUnit tests and test sites you don’t own.

Problem:
We’ve been using a 3rd party tool to generate a page, and I had to test some data there.
Since I had no knowledge of the DOM (it would be preferable to think of it as a black box), I couldn’t really use traditional tools that would validate the presence of certain elements on a page. A better way would be to inject a script into a page and validate the content of some global variables.

In my scenario it also would be preferable to keep test code separate from the site being tested and treat it as something I don’t own (it’s being built by another team, so it would be easier).

So I want to be able to inject my Jasmine tests into a page; I want to see the list of tests as NUnit tests. Continue reading “How to run Jasmine tests as nUnit tests and test sites you don’t own.”