title: Unit Testing in QTestLib - running single test / tests in class / all tests
body: <p>I'm just starting to use QTestLib. I have gone through the <a href="http://doc.trolltech.com/4.6/qtestlib-manual.html" rel="noreferrer">manual</a> and <a href="http://doc.trolltech.com/4.6/qtestlib-tutorial.html" rel="noreferrer">tutorial</a>. Although I understand how to create tests, I'm just not getting how to make those tests convenient to run. My unit test background is NUnit and MSTest. In those environments, it was trivial (using a GUI, at least) to alternate between running a single test, or all tests in a single test class, or all tests in the entire project, just by clicking the right button.</p>
  
  <p>All I'm seeing in QTestLib is either you use the <code>QTEST_MAIN</code> macro to run the tests in a single class, then compile and test each file separately; or use <code>QTest::qExec()</code> in <code>main()</code> to define which objects to test, and then manually change that and recompile when you want to add/remove test classes.</p>
  
  <p>I'm sure I'm missing something. I'd like to be able to easily:</p>
  
  <ul>
  <li>Run a single test method </li>
  <li>Run the tests in an entire class</li>
  <li>Run all tests</li>
  </ul>
  
  <p>Any of those would call the appropriate setup / teardown functions.</p>
  
  <p><strong>EDIT:</strong> Bounty now available. There's got to be a better way, or a GUI test runner that handles it for you or something. If you are using QtTest in a test-driven environment, let me know what is working for you. (Scripts, test runners, etc.)</p>