#NEWLINE# def to_test_project( self ) : #NEWLINE# #INDENT# if ( not os . path . exists ( self . qitest_json ) ) : #NEWLINE# #INDENT# raise NoQiTestJson ( ) #NEWLINE# #UNINDENT# res = qitest . project . TestProject ( self . qitest_json ) #NEWLINE# if ( not res . tests ) : #NEWLINE# #INDENT# ui . error ( ( ( 'No tests were found in qitest.json.\n' + 'Add some in the CMakeLists using ' ) + 'qi_add_test() or similar' ) ) #NEWLINE# #UNINDENT# res . name = res . name #NEWLINE# return res