title: Combining Unit Tests and Graphical output using QT
body: <p>I want to use the BOOST testing framework and I also need a QApplication for visualization since some of my tests are very clearly visualized.
  Hence I need to call QApplication exec() as last thing in my main and the exec is supposed to run as long as the window is not closed.</p>
  
  <p>I tried the following code but it does not work as expected (no window) and needs manual test registration.</p>
  
  <pre><code>test_suite*
  init_unit_test_suite( int argc, char* argv[] ) {
    QApplication app(argc, argv);
    MainWidget widget(0);
  
     test_suite* test= BOOST_TEST_SUITE( "Test case template example" );
     test-&gt;add(BOOST_TEST_CASE(&amp;free_test_function2);
     //... many more tests
  
    widget.show();
    app.exec();
    return test;
  }
  </code></pre>
  
  <p>How to use BOOST_TEST together with sth.like QApplication ?
  Is it also possible with automatic test registration ?</p>
  
  <p>Many thanks, Martin</p>