Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test some QML components #5375

Merged
merged 11 commits into from
Jun 27, 2024
Merged

Test some QML components #5375

merged 11 commits into from
Jun 27, 2024

Conversation

mohsenD98
Copy link
Collaborator

@mohsenD98 mohsenD98 commented Jun 20, 2024

This pull request adds a set of tests for the QML components provided by the EditorWidgets module. The tests cover various aspects of each component, including their initial state, configuration options, and functionality. The tests are organized into separate functions, each of which focuses on a specific component.

The components tested in this pull request are:

TextEdit: Tests its ability to set and get values, as well as its configuration options for multiline and HTML text.
Range: Verifies its initial value, default values, and configuration options for style, precision, min, max, step, and suffix.
DateTime: Tests its display formats, calendar popup, and field format options.
CheckBox: Verifies its initial state, checked and unchecked states, and configuration options for display method and type.
ValueMap: Tests its properties, including toggle buttons and combobox models, as well as its value and current key value.
UuidGenerator: Verifies its initial state and value, as well as its isLoaded and isAdding properties.

@mohsenD98 mohsenD98 marked this pull request as draft June 20, 2024 14:07
@qfield-fairy
Copy link
Collaborator

qfield-fairy commented Jun 20, 2024

@mohsenD98 mohsenD98 changed the title WIP Try to test in pr. Test some QML components Jun 25, 2024
Copy link
Member

@nirvn nirvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mohsenD98 , just a few comments, thanks, this already adds good additional CI checks. Lovely.

test/test_qml.cpp Outdated Show resolved Hide resolved
test/test_qml.cpp Outdated Show resolved Hide resolved
test/qml/tst_editorwidgets.qml Show resolved Hide resolved
test/qml/tst_editorwidgets.qml Outdated Show resolved Hide resolved
test/qml/tst_editorwidgets.qml Show resolved Hide resolved
test/qml/tst_editorwidgets.qml Show resolved Hide resolved
@nirvn nirvn marked this pull request as ready for review June 25, 2024 08:29
@mohsenD98 mohsenD98 marked this pull request as draft June 25, 2024 10:33
@mohsenD98 mohsenD98 self-assigned this Jun 25, 2024
@mohsenD98 mohsenD98 marked this pull request as ready for review June 27, 2024 08:36
#include <qgsvectorlayereditbuffer.h>
#include <qgswkbtypes.h>

#include <valuemapmodel.h>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one last thing @mohsenD98, this is one of our own header, it should go up alongside the #include "positioning.h" and not use <>.

@nirvn nirvn enabled auto-merge June 27, 2024 09:38
@nirvn nirvn merged commit 3ac3219 into master Jun 27, 2024
23 checks passed
@nirvn nirvn deleted the qml_tests branch June 27, 2024 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants