Project Management
Test
|
Result
|
Annotation
|
Check parsing of qmake projects:
- Prepare sources of Qt and Qt Creator (see below)
- Select "File" -> "Open File or Project…" from Creator's menu and open projects.pro from Qt's sources.
- Select "File"-> "Open File or Project…" from Creator's menu and open qtcreator.pro from Qt Creator's sources.
- Wait until parsing finished.
- Check that the projects are completely indexed, e.g. by searching for some of Qt's Classes using the Locator.
|
automated
|
|
Check parsing of qbs projects:
- Prepare sources of Qt Creator (see below)
- In "Help" -> "About Plugins…", verify that QbsProjectManager is enabled.
- Select "File"-> "Open File or Project…" from Creator's menu and open qtcreator.qbs from Qt Creator's sources.
- Wait until parsing finished.
- Check that the project is completely indexed, e.g. by searching for some of Qt's Classes using the Locator.
|
|
|
Adding a build configuration:
- Open a project.
- Go to "Projects" mode.
- Add a new build configuration.
- The project can be built successfully with this build configuration.
|
|
|
Adding a run configuration:
- Open a project.
- Go to "Projects" mode.
- Add a new run configuration.
- The project can be run successfully with this run configuration.
|
|
|
Opening a project from Welcome screen:
- Close all open projects.
- Go to "Welcome" mode.
- Open a previously opened project by clicking its name in the Welcome screen.
|
automated
|
|
CMake project management:
- Have CMake installed.
- Windows: Add the path to the installed cmake.exe to your system's PATH environment variable.
- Checkout SpeedCrunch's source repository at https://bitbucket.org/heldercorreia/speedcrunch.git .
- Extract the package.
- Have a Kit using Qt 4 or Qt 5 configured in Creator.
- Select "File" -> "Open File or Project…" from Creator's menu and open src/CMakeLists.txt.
- Follow the instructions in the wizard. When asked for a Kit, select the Kit using Qt 4 or Qt 5. (if you have SpeedCrunch before v0.11 use Qt 4)
- Wait until parsing finished.
- Check that the project is completely indexed, e.g. by expanding items of the tree structure in the "Class View".
|
semi-automated
|
|
Creator can build and run the project from the previous test.
|
automated
|
|
QML errors:
- Create a hybrid QML/C++ project (Qt Quick Application). In Projects mode, leave "Shadow build" checked.
- Add errors to the qml file.
- Save and close the file.
- Run this project on the desktop.
Are the error messages in Application Output clickable when running the app? Do they open the "right", file (not in shadow build)?
|
|
|
External changes:
- Open a file in Creator.
- Edit this file outside Creator, e.g. using some text editor.
- Go back to the file in Creator. Creator must report that the file was changed.
|
automated
|
|
Deleted files:
- Open a file in Creator.
- Delete this file outside Creator, e.g. using some file manager.
- Go back to the file in Creator. Creator must report that the file was deleted.
|
automated
|
|
Windows: Foreign character sets:
- Add a user whose name contains non-latin characters (Віталій , ناصر , 右京) using Windows Control Panel.
- Login to this user account and run Creator.
- Create a session and activate this session. No warnings or error messages should appear.
|
|
|
Try to make Creator crash, be evil. ;-)
|
|
C++ Support
Test
|
Result
|
Annotation
|
Open the project tests/manual/cplusplus-tools/cplusplus-tools.pro from Creator's sources and perform the following tasks:
|
Variable declarations:
- Move the cursor to the usage of a variable.
- Press F2 or select from the menu: Tools-> C++ -> Follow Symbol under Cursor
Creator will show you the declaration of the variable.
|
automated
|
|
Function definitions:
- Move the cursor to a function call.
- Press F2 or select from the menu: Tools-> C++ -> Follow Symbol under Cursor
Creator will show you the definition of the function.
|
automated
|
|
Definition/declaration:
- Move the cursor to a function declaration
- Press Shift+F2 or select from menu: Tools-> C++ -> Switch Between Method Declaration/Definition
Creator should show the definition of this function
- Press Shift+F2 or select from menu: Tools-> C++ -> Switch Between Method Declaration/Definition again
Creator should show the declaration of the function again.
|
automated
|
|
Switching between sources and headers:
- Open a source or header file of a source/header couple (same base name)
- Press F4 or select from menu: Tools-> C++ -> Switch Header/Source
Creator should show the respective other file (header/source).
|
|
Finding usages:
- Open a header or source file
- Move cursor to the usage of a variable or function call
- Press Ctrl+Shift+U or select from menu: Tools-> C++ -> Find Usages
A search result view should appear at the bottom indicating files containing usages of this variable or function.
When expanding the tree view-like structures, the respective lines can be seen. Double clicking on them should direct you to this file and line
|
|
|
Renaming usages:
- Move cursor to a variable or function call
- Press Ctrl+Shift+R or select from menu Tools-> C++ -> Rename Symbol Under Cursor
You should be able to enter another name changing every occurrence of this variable or function.
Note: When changing variable "a" to "b", other variables like "a1" must not be changed!
|
automated
|
|
When entering the first few letters of a variable or function (or: includes, keywords, function arguments, snippets, etc), Creator should automatically show possible completions. You might have to hit Ctrl+Space.
|
|
|
Configure Qt documentation in "Tools" -> "Options..." -> "Help" -> "Documentation".
After this, when hovering the mouse over some variable or function call, a tooltip should appear telling you the type of this element.
In case it's a Qt object (like QString, QWidget, …), you should see a picture of the F1 button in the top right corner of the tooltip, indicating that you can easily switch to the Qt documentation of this class or method by pressing F1. Pressing F1 will open the related page.
|
|
|
Try code folding. Fold and unfold classes and functions. Does everything work as expected?
|
|
|
Try triggering Quick Fixes at different code lines by pressing Alt+Enter. Does Creator offer Quick Fixes and does it change the code correctly when you use one of them?
|
|
|
Preparing sources of Qt and Qt Creator
This can be used for all following tests after it was done once.
Simply download sources of Qt (tar.gz/zip) and Qt Creator (tar.gz/zip) and extract them. You have to build Qt outside of qtcreator. Otherwise qtcreator won’t be able to parse the Qt sources.