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

Refactor tests and enable -Werror in CMake build #109

Merged
merged 10 commits into from
Sep 13, 2022

Conversation

Flamefire
Copy link
Collaborator

  • Use boost_test_jamfile to automatically generate tests in CMake from the Jamfile
  • Add option to enable -Werror in CMake tests and use that
  • Add TEST_EQ to print values of failing equal-assertions
  • Unify and simplify code in tests

@codecov
Copy link

codecov bot commented Sep 11, 2022

Codecov Report

Merging #109 (e4703df) into develop (6f66770) will decrease coverage by 0.28%.
The diff coverage is 98.16%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #109      +/-   ##
===========================================
- Coverage    80.97%   80.69%   -0.29%     
===========================================
  Files           76       73       -3     
  Lines         5891     5790     -101     
===========================================
- Hits          4770     4672      -98     
+ Misses        1121     1118       -3     
Impacted Files Coverage Δ
include/boost/locale/date_time.hpp 91.42% <ø> (ø)
test/test_boundary.cpp 100.00% <ø> (ø)
test/test_codecvt.cpp 92.35% <ø> (ø)
test/test_codepage_converter.cpp 99.38% <ø> (ø)
test/test_collate.cpp 100.00% <ø> (ø)
test/test_config.cpp 96.36% <ø> (ø)
test/test_convert.cpp 100.00% <ø> (ø)
test/test_formatting.cpp 100.00% <ø> (ø)
test/test_generator.cpp 100.00% <ø> (ø)
test/test_icu_vs_os_timezone.cpp 100.00% <ø> (ø)
... and 19 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f66770...e4703df. Read the comment docs.

@Flamefire Flamefire force-pushed the test_refactor branch 4 times, most recently from 386bed6 to dbe7f38 Compare September 12, 2022 18:36
Change the Jamfile to use a format usable with `BoostTestJamfile`
and then use that in the CMakeLists
C4251: "icu_50::DecimalFormat::fBoolFlags": class "icu_50::EnumSet<UNumberFormatAttribute,4096,4098>" needs to have dll-interface...
Simplify code by removing uneccessary loops.
Factor out code from macros into functions to allow easier debugging.
Gets rid of the `test_` prefix in the filenames and avoids confusing those with the actual tests especially by renaming the test framework file from `test_locale.hpp` to `unit_test.hpp`
@Flamefire Flamefire force-pushed the test_refactor branch 2 times, most recently from da3ea9a to e4703df Compare September 13, 2022 16:04
@Flamefire Flamefire merged commit 903724c into boostorg:develop Sep 13, 2022
@Flamefire Flamefire deleted the test_refactor branch September 13, 2022 18:31
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.

None yet

1 participant