Ian Keough has posted a Dynamo Revit Test Framework to GitHub...
"The Dynamo Revit Testing Framework is designed to allow the running of NUnit test cases on Revit. It uses a python script to automatically generate Revit journal files. When run, these journal files handle opening a specified model, instigating the testing plugin, and running the specified test. This document outlines the components of the Dynamo Revit Test Framework and provides examples of how to run NUnit tests against Revit from the command line."
There's more information available on GitHub.
Credit: Luke Johnson's What Revit Wants blog.