• Nikolai Kosjar's avatar
    C++: Tests: Add stupid "do xyz for each file/token" tests · 1a986451
    Nikolai Kosjar authored
    Introduce tests that execute test actions on each word/token of each
    file from every loaded project. Currently, besides just opening files
    and moving token by token through the files, the following basic actions
    from the CppTools and CppEditor plugin are executed for each token:
    
        - Follow Symbol Under Cursor
        - Switch Declaration/Definition
        - Find Usages
        - Rename Symbol Under Cursor
        - Open Type Hierarchy
        - Invoke Completion
        - Trigger a quick fix in this scope (+perform)
    
    Note that
    
    (1) These tests are meant to detect corner cases for which Qt Creator
        crashes or outputs QTC_ASSERTS. Correct behavior is not tested.
    
    (2) These tests operate on the loaded projects. Therefore, projects
        should be specified on the command line or should be loaded by the
        session manager. Depending on the projects size, these tests might
        be quite time consuming and are therefore candidates for nightly
        tests.
    
        Suggested test projects are qtcreator.pro, qtbase.pro.
    
    Change-Id: I550776b3d56acb17ab337da068d409bfc21e997a
    Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
    1a986451
fileandtokenactions_test.cpp 18.6 KB