WebAssert HTML & CSS validation testing library v0.1 released
Posted: April 24, 2010 Filed under: Uncategorized | Tags: ASP.NET, CSS, Unit Testing, Visual Studio, Web Standards, XHTML 2 CommentsA while back I posted about automating the checking of HTML validity of your ASP.NET site using unit tests that leverage the W3C Markup Validation Service. I’ve showed the technique in a number of presentations since then and used it on a number of projects to good effect.
In an effort to make it easier to consume in your own project and allow for future expansion with new features, I’ve refactored it and rolled it into a new open-source library called WebAssert, up on CodePlex.
Thanks to some scripting help from the ever talented Tatham Oddie, I’m happy to announce the release of WebAssert v0.1 (beta).
This initial release supports checking for markup and CSS validity of URLs using the W3C hosted validators, or your own hosted instances. This release supports the MSTest framework in Visual Studio but there is already a fork containing a wrapper for NUnit which I plan to integrate soon. You can also test sites hosted using the AspNetDevelopmentServer attribute under MSTest.
Any feedback please let me know.
Hey Damian,
I was at the PNP conference and you mentioned a .vsdoc.js generator during your jquery talk. Do you have a url for this project? I searched codeplex but could not find it.
Andy
Hi Andrew,
I just uploaded it to the ASP.NET codeplex site. You can find it in the source at http://aspnet.codeplex.com/SourceControl/changeset/view/59329#1057000. I haven’t published any details yet, but the quick guide is you’ll need to download the source and compile and run it from VS then click the buttons in the web page get it to produce the vsdoc output in the text area on the page. Then you can just copy and paste it in.
D.