title: Testing d3 (and other SVG based) Web Applications
body: <p>I have a web application that uses the <a href="http://d3js.org/" rel="noreferrer">d3</a> library for some complex SVG based visualizations. </p>
  
  <p>I have automated tests for my server side code and JavaScript models (I use an MVC like architecture in my JavaScript). These are run on a Jenkins CI server on every commit. Now I need to work out how to test my views. </p>
  
  <p>How do others tackle this problem and what tools do you use? </p>
  
  <p>Some thoughts I've had ...</p>
  
  <ul>
  <li>Serialize the SVG generated to a file and compare to a baseline</li>
  <li>Automatically capture a browser image and do an image diff </li>
  <li>Something else?</li>
  </ul>
  
  <p>Thanks!</p>