Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated testing with Google Test cagnulein#911 (cagnulein#1111)
* cagnulein#911 new branch with a very basic google test. Needs google test downloaded into /google_test. Will probably set up another submodule at some point. * cagnulein#911 added google test as a submodule * Attempt to get lib and test project to build in action * cagnulein#911 trying to get submodule checkout to work * cagnulein#911 trying to get Linux build to happen * cagnulein#911 added header include * cagnulein#996 put the values from settings read for device discovery into a class * cagnulein#996 moved the enormous if statement for device detection to a method. * cagnulein#996 split device detection into detection and bluetoothdevice object creation * cagnulein#996 return the created object (but don't use it) * cagnulein#996 factored out starting of template managers into a single location * cagnulein#911 beginning of 2 device detection tests using google test * cagnulein#911 removed unnecessary #pragma once * cagnulein#996 put new classes into separate files. Added exclusions to devicediscoveryinfo to replicate current production behaviour * cagnulein#996 comments on functions * cagnulein#911 latest work. Tests crash in Windows. * cagnulein#911 2 device detection tests working * cagnulein#911 added test data classes for remaining devices * cagnulein#911 missed file * cagnulein#911 tests build and run. Most fail due to incomplete config. * cagnulein#911 filled in details for some of the device tests * cagnulein#911 filled in vast majority of test data. Doesn't build, and some obscure situations yet to be done. * cagnulein#911 use template method instead * cagnulein#911 builds, some tests failing * cagnulein#911 fixed some tests. * cagnulein#911 device identification tests passing to the currently possible extent, pending feedback. * cagnulein#911 start of work testing device object creation * cagnulein#911 got bluetoothdevice object creation tests working * cagnulein#911 added manufacturer data for m3i bike test, and fixed case sensitivity of m3i bike test. * cagnulein#911 added ability to specify and test multiple settings configurations * cagnulein#911 fixed typos * cagnulein#911 parameterized version * cagnulein#911 fixed file name to match class * cagnulein#911 added version using typed tests. Refactored to share basic test code from original test suite. * cagnulein#911 added googletest submodule to the documentation * cagnulein#911 rework to match current functioning of the bluetooth class, instead of the result of current work on cagnulein#996. * cagnulein#911 updated for changes in master. Still doesn't actually work. * cagnulein#911 added configuration of test QSettings. QSettings are probablly not set up properly, but the tests actually run now, but many fail. * cagnulein#911 added test settings facility This enables the developer to override the default QSettings for the life of a test suite. * cagnulein#911 start tests with default settings. * cagnulein#911 got exclusions working At least, where the bluetoothdevice object can actually work. * cagnulein#911 skip abstract devices * cagnulein#911 removed some unused code * cagnulein#911 removed unused file * cagnulein#911 include app project in main project * cagnulein#911 updated for latest device detection code * cagnulein#911 added submodule checkout of googletest to Android build * cagnulein#911 run qmake from the root in android build * cagnulein#911 adjusted test names and made the test for the invalid bluetooth device info test with enabling and disabling settings. * cagnulein#911 enabled the test for non-detection with invalid names * cagnulein#911 fixed test * cagnulein#911 updated comments * cagnulein#911 moved devicediscoveryinfo to the testing project * cagnulein#911 move devicediscoveryinfo to the test project * cagnulein#911 removed a unused class * cagnulein#911 removed unused file * cagnulein#911 modify correct object * cagnulein#911 modify correct object * cagnulein#911 removed irrelevant comment * adding ls to locate llvm-arm * debugging github actions * Update main.yml * cagnulein#911 try being more specific about tst project dependency * trying linking llvm-ar * debugging llvm * adding alias to llvm-ar * enabling aliases * Update main.yml * maybe the last one for fixing CI? * cagnulein#911 see how the CI builds go without the app project * cagnulein#911 restored app project to root project * trying to move the alias just before the make process * trying to use NDK_LLVM_PATH * trying set AR variable * seems to be the right way * fixing test m3i * updating version aligned with the master * cagnulein#911 moved some definitions to defaults.pri * cagnulein#911 adjusted test case for adjusted detection rule * cagnulein#911 adjusted relative path * cagnulein#911 try adding toolchain/bin to path * cagnulein#911 revert previous change and show the PATH * cagnulein#911 fixed yml file * cagnulein#911 restored previous working yml file * cagnulein#911 show the PATH * cagnulein#911 moved some android related content to the shared defaults.pri * cagnulein#911 ignore the test and lib projects in an Android build * cagnulein#911 restore yml without AR specified * cagnulein#911 updated for the "TOORX" option for Horizon Treadmill * cagnulein#911 added test for the new detection criteria for Horizon Treadmill (TOORX) * cagnulein#911 added test for Kingsmith WR1 rowing device * cagnulein#911 added test cases for Toorx experience etc * cagnulein#911 added test case for FTMS Bike named KICKR CORE * cagnulein#911 simplified setup of multiple detection configs * cagnulein#911 further simplification of test config setup * version aligned with master Co-authored-by: Roberto Viola <cagnulein@gmail.com>
- Loading branch information