Qt Creator ManualTests ProjectsAndCode: Difference between revisions
(Added tests for importing and removing kits) |
(Update settings menu) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
! Annotation | ! Annotation | ||
|+ | |+ | ||
| | |Open a couple of Tutorials from the Welcome page and validate that they show up correctly. | ||
| | |||
| | |||
| | | | ||
|+ | |+ | ||
Line 20: | Line 15: | ||
# In "Help" -> "About Plugins…", verify that QbsProjectManager is enabled. | # 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. | # Select "File"-> "Open File or Project…" from Creator's menu and open qtcreator.qbs from Qt Creator's sources. | ||
# Select a suitable kit and click "Configure Project". | |||
# Wait until parsing finished. | # Wait until parsing finished. | ||
# Check that the project is completely indexed, e.g. by searching for some of [https://doc.qt.io/qt-5/classes.html Qt's Classes] using the [https://doc.qt.io/qtcreator/creator-editor-locator.html Locator]. | # Check that the project is completely indexed, e.g. by searching for some of [https://doc.qt.io/qt-5/classes.html Qt's Classes] using the [https://doc.qt.io/qtcreator/creator-editor-locator.html Locator]. | ||
Line 44: | Line 40: | ||
# Build a project in Qt Creator. | # Build a project in Qt Creator. | ||
# Close the project. | # Close the project. | ||
# Delete the file * | # Delete the file *.user from the project's directory. | ||
# Open the project in Creator again. | # Open the project in Creator again. | ||
# Import the build from step 1. | # Import the build from step 1. | ||
Validate that Creator uses the same kit as in step 1. A new | Validate that Creator uses the same kit as in step 1. A new kit must not be created. | ||
| | | | ||
| | | | ||
Line 54: | Line 50: | ||
# Build a project in Qt Creator. | # Build a project in Qt Creator. | ||
# Close Creator. | # Close Creator. | ||
# Delete the file * | # Delete the file *.user from the project's directory. | ||
# Start Creator with empty settings, e.g. using the command line switch "- | # Start Creator with empty settings, e.g. using the command line switch "-tcs". Do not have a Qt version in your PATH variable. | ||
# Open the same project again. | # Open the same project again. | ||
# Import the build from step 1.<br/>Validate that Creator creates a new kit with the Qt version and toolchain used in step 1. It contains an appropriate debugger and can be used for building, running, debugging. | # Import the build from step 1.<br/>Validate that Creator creates a new kit with the Qt version and toolchain used in step 1. It contains an appropriate debugger and can be used for building, running, debugging. | ||
Line 64: | Line 60: | ||
# Have a couple of kits set up in Creator. | # Have a couple of kits set up in Creator. | ||
# Open a project and configure it with some kits. | # Open a project and configure it with some kits. | ||
# Go to " | # Go to "Edit" -> "Preferences..." -> "Kits" -> "Kits". | ||
# Remove a kit. | # Remove a kit. | ||
# Click "Apply". | # Click "Apply". | ||
Line 93: | Line 89: | ||
| Creator can build and run the project from the previous test. | | Creator can build and run the project from the previous test. | ||
| automated | | automated | ||
| | | | ||
|+ | |+ | ||
Line 132: | Line 119: | ||
|+ C++ Support | |+ C++ Support | ||
! Test | ! Test | ||
When running the following tests, please make sure that the ClangCodeModel plugin is enabled, which is the default. | |||
! Result | ! Result | ||
! Annotation | ! Annotation | ||
Line 170: | Line 157: | ||
# Open a header or source file | # Open a header or source file | ||
# Move cursor to the usage of a variable or function call | # Move cursor to the usage of a variable or function call | ||
# Press Ctrl+Shift+U or select from menu: Tools-> C++ -> Find | # Press Ctrl+Shift+U or select from menu: Tools-> C++ -> Find References to Symbol Under Cursor | ||
A search result view should appear at the bottom indicating files containing usages of this variable or function. | 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 | 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 | ||
Line 188: | Line 175: | ||
| | | | ||
|+ | |+ | ||
| Configure Qt documentation in " | | Configure Qt documentation in "Edit" -> "Preferences..." -> "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. | 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. | 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. | ||
Line 206: | Line 193: | ||
This can be used for all following tests after it was done once.<br /> | This can be used for all following tests after it was done once.<br /> | ||
Simply download sources of Qt ([https://download.qt.io/official_releases/qt/5. | Simply download sources of Qt ([https://download.qt.io/official_releases/qt/5.12/5.12.1/single/qt-everywhere-src-5.12.1.tar.xz tar.xz]/[https://download.qt.io/official_releases/qt/5.12/5.12.1/single/qt-everywhere-src-5.12.1.zip zip]) and Qt Creator ([http://download.qt.io/official_releases/qtcreator/4.9/4.9.0/qt-creator-opensource-src-4.9.0.tar.gz tar.gz]/[https://download.qt.io/official_releases/qtcreator/4.9/4.9.0/qt-creator-opensource-src-4.9.0.zip zip]) and extract them. You have to build Qt outside of qtcreator. Otherwise qtcreator won’t be able to parse the Qt sources. |
Latest revision as of 13:45, 21 June 2022
Test | Result | Annotation |
---|---|---|
Open a couple of Tutorials from the Welcome page and validate that they show up correctly. | ||
Check parsing of qbs projects:
|
||
Adding a build configuration:
|
||
Adding a run configuration:
|
||
Importing build of known kit:
Validate that Creator uses the same kit as in step 1. A new kit must not be created. |
||
Importing build of unknown kit:
|
||
Removing kits:
Validate that the project is still usable with the remaining kits and nothing undesired happens in the process. |
||
Opening a project from Welcome screen:
|
automated | |
CMake project management:
|
semi-automated | |
Creator can build and run the project from the previous test. | automated | |
External changes:
|
automated | |
Deleted files:
|
automated | |
Windows: Foreign character sets:
|
||
Try to make Creator crash, be evil. ;-) |
Test
When running the following tests, please make sure that the ClangCodeModel plugin is enabled, which is the default. |
Result | Annotation |
---|---|---|
Open the project tests/manual/cplusplus-tools/cplusplus-tools.pro from Creator's sources and perform the following tasks: | ||
Variable declarations:
Creator will show you the declaration of the variable. |
automated | |
Function definitions:
Creator will show you the definition of the function. |
automated | |
Definition/declaration:
Creator should show the definition of this function
Creator should show the declaration of the function again. |
automated | |
Switching between sources and headers:
Creator should show the respective other file (header/source). |
||
Finding 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:
You should be able to enter another name changing every occurrence of this variable or function. |
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 "Edit" -> "Preferences..." -> "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.xz/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.