JavaScript for .Net Specification Framework (JSNSpec)
Do Test-Driven Development
on in-line ASP .NET code
Write .NET code in a dynamically
typed language
Use a simple testing framework
you customize for your team
Speed up development by
avoiding the compiling process
Use the same framwork in the browser,
ASP .NET, and Slverlight.
Download JSNSpec 1.0 Here
How To Install JSNSpec:
- Install the Silverlight Dynamic Language SDK.
- Install Visual Web Developer 2008.
- Unzip JSNSpec somewhere
on your hard drive. Consider putting it with other Chiron projects
if you are developing in Silverlight.
- To specify ASP .Net code, use
- Visual Web Developer and start up the project as a web.
- Start up Test.aspx by right-clicking on the file and choosing to view it in your browser.
- Use ServerSpecs.js to write your specifications.
- Use ServerCode.js to write your code.
- To specify browser-based code, use
- Visual Web Developer and start up the project as a web.
- Start up Test.htm by right-clicking on the file and choosing to view it in your browser.
- Use ClientSpecs.js to write your specifications.
- Use ClientCode.js to write your code.
- To specify Silverlight code in Managed JScript, use
- Start Chiron.
- Navigate to TestSilverlight.html.
- Use app.js to write your specifications.
- Use any .js file to write your code, make sure to use LoadModule to load modules you wish to specify and test.
This is a very simple specification framework and you can use it to develop your own framework. This
allows you to create a framework that fits your team's specific needs.
What's New in the JSNSpec 1.0 Release
- Use specification language rather than testing language like JSNUnit used to have.
- JSNSpec specifies itself and can test itself.
- Unlike JSNUnit, JSNSpec can use beforeEachExample and afterEachExample methods that can be shared
for a group of specifications.
- JSNSpec now runs within Managed JScript on Silverlight.
- Unlike JSNUnit, JSNSpec can tally tests that take place after the runner's page load allowing you
to perform post-back tests. Follow the pattern at the end of the JSNSpecSpec.
- Unlike JSNUnit, JSNSpec cannot provide an XML output yet. It shouldn't be that hard to add in a future
release, however.
For More Information
JSNSpec is a major upgrade to JSNUnit
which is still available. There are
other specification and testing tools available at this site as well.
If you have any questions or comments about this please visit my site at
www.troytaft.com.
This is a free download at this time and is subject to the
ValleyHighlands Free License