visual studio - Javascript unit tests for Web Api REST services? -


i have web api controller action takes quite complex object argument. it's passed webservice json, of course, , supposed deserialize instance of c# class.

i have unit tests in business layer convince me json serialization/deserialization of class in question works expected.

and have c# unit tests running against web api controllers, passing instances of class actions, ensure if controller actions have right behavior, given correct objects.

my problem: these objects complicated enough constructing improper json isn't going easy. intent create convenience functions, in javascript, aid in construction, , i'd have unit tests make sure work, , unit tests ensure properly-formatted json deserialized target class expected.

that means need create, in vs2013 solution, way run javascript, both self-contained unit tests, , calls against web api webservice.

any suggestions tooling work best that?

i'd can contained within visual studio, can configured msbuild target. (would make guys deal continuous integration configuration happier.)


Comments