aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/fileandtokenactions_test.h
blob: a4b8ff81719fde9e6dc5852824c1ebf52803082f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <QObject>

namespace CppEditor::Internal::Tests {

// These tests operate on a project and require special invocation:
//
// Ensure that the project is properly configured for a given settings path:
//   $ ./qtcreator -settingspath /your/settings/path /path/to/project
//
// ...and that it builds, which might prevent blocking dialogs for not
// existing files (e.g. ui_*.h).
//
// Run the tests:
//   $ export QTC_TEST_WAIT_FOR_LOADED_PROJECT=1
//   $ ./qtcreator -settingspath /your/settings/path -test CppEditor,FileAndTokenActionsTest /path/to/project
class FileAndTokenActionsTest : public QObject
{
    Q_OBJECT

private slots:
    void testOpenEachFile();
    void testSwitchHeaderSourceOnEachFile();
    void testMoveTokenWiseThroughEveryFile();
    void testMoveTokenWiseThroughEveryFileAndFollowSymbol();
    void testMoveTokenWiseThroughEveryFileAndSwitchDeclarationDefinition();
    void testMoveTokenWiseThroughEveryFileAndFindUsages();
    void testMoveTokenWiseThroughEveryFileAndRenameUsages();
    void testMoveTokenWiseThroughEveryFileAndOpenTypeHierarchy();
    void testMoveTokenWiseThroughEveryFileAndInvokeCompletion();
    void testMoveTokenWiseThroughEveryFileAndTriggerQuickFixes();
};

} // namespace CppEditor::Internal::Tests