Skip to content

add unit tests (for translations)#412

Open
ProfessorTom wants to merge 3 commits intodannagle:developmentfrom
ProfessorTom:tomas/add_unit_tests_for_translations
Open

add unit tests (for translations)#412
ProfessorTom wants to merge 3 commits intodannagle:developmentfrom
ProfessorTom:tomas/add_unit_tests_for_translations

Conversation

@ProfessorTom
Copy link
Contributor

Before submitting a pull request:

  • Did you fork from the development branch? yes
  • Are you submitting the pull request to the development branch? (not master) yes

This Pull Request adds some QtUnit unit tests to the project.

I thought it would be a good idea to add unit tests and wanted to test something that was fairly isolated. It turns out, I already provided the necessary isolation with code I added recently which is why I chose to unit test the translation.

As submitted, this PR only builds the unit test (singular because there's only one test even if it is parallelized) via CMake. qmake can be used and allegedly I have instructions on how to get the tests building with qmake. But this might be the necessary motivation to get off of qmake everywhere we are still running qmake builds and full get on CMake.

NOTE: this PR does not provide ci configuration to run the tests as part of the build.

I tested this code on macOS Tahoe 26.3 on an M2 MacBook Pro; all bets are off other places, say SnapCraft.

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.

1 participant