Logo Search packages:      
Sourcecode: kmess version File versions  Download package

void KMessTest::runTest ( const QString &  testName  ) 

The main testing function. Runs a given test based on a command line argument.

Definition at line 94 of file kmesstest.cpp.

Referenced by KMessApplication::initializeMainWindow().

{
  // Add the tests, which can be run from debug builds using:
  // ./kmess --runtest <name>

  kDebug() << "Running test:" << testName;
  kDebug() << "----------------------------------------";
  kDebug();

  QStringList testcases;

  TESTCASE( "transferwindow",      testTransferWindow() );
  TESTCASE( "chathistory",         testChatHistoryDialog() );
  TESTCASE( "chatwindow",          testChatWindow() );
  TESTCASE( "challenge",           testChallengeHandler() );
  TESTCASE( "crash",               testCrash() );
  TESTCASE( "addcontact",          testAddContactDialog() );
  TESTCASE( "contactaddeduser",    testContactAddedUserDialog() );
  TESTCASE( "msnplus",             testMsnPlus() );
  TESTCASE( "msnplusinteractive",  testMsnPlusInteractive() );
  TESTCASE( "parserbenchmark",     benchmarkParser() );
  TESTCASE( "ns",                  testNotificationConnection() );
  TESTCASE( "contactlist",         testContactList() );
  TESTCASE( "connect",             testConnect() );
  TESTCASE( "settings",            testSettings() );
  TESTCASE( "sb",                  testSwitchboardConnection() );
  TESTCASE( "notifications",       testNotifications() );
  TESTCASE( "nowlistening",        testNowListening() );
  TESTCASE( "soap",                testSoapConnection() );
  TESTCASE( "xslt",                testXslTransformation() );
  TESTCASE( "systemtray",          testSystemTray() );
  TESTCASE( "offlinemessages",     testOfflineMessages() );
  qSort( testcases );
  kDebug() << "Test case not found, available cases:";
  kDebug() << testcases.join( ", " );

  quitAfterTest_ = true;
}


Generated by  Doxygen 1.6.0   Back to index