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 unit tests to use more convenient doctest assertion macros #3393

Merged
merged 26 commits into from
Mar 24, 2022
Merged

Refactor unit tests to use more convenient doctest assertion macros #3393

merged 26 commits into from
Mar 24, 2022

Conversation

kkarbowiak
Copy link
Contributor

This PR refactors unit tests to use more convenient doctest assertion macros, as discussed in issue #3365.

The bulk of the change was done automatically, using a regexp replace, with some manual adjustments.

In the process, I found several unit tests that rely on the side effects of running two assertion macros and got broken by running a single one. Those tests are left untouched, to keep them passing. I think I will try to address those is a separate PR.

@coveralls
Copy link

coveralls commented Mar 17, 2022

Coverage Status

Coverage remained the same at 100.0% when pulling bd24f68 on kkarbowiak:develop into ad103e5 on nlohmann:develop.

Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@nlohmann nlohmann added the please rebase Please rebase your branch to origin/develop label Mar 19, 2022
Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

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

There are still tests failing in the CI. Can you please update from the latest develop branch?

@kkarbowiak
Copy link
Contributor Author

kkarbowiak commented Mar 20, 2022

There are still tests failing in the CI. Can you please update from the latest develop branch?

As far as I can tell, my fork is up to date with regards to the develop branch.

Also, it seems that the only CI builds that did not succeed are the msvc2017 ones. Those got canceled, presumably due to Github deprecating the windows-2016 environment that these builds run on. Please have a look at the bottom of this page. If I'm mistaken though, I'll be happy to do any corrections necessary to make the CI builds pass.

@nlohmann
Copy link
Owner

The latest develop branch runs all CI tests.

@nlohmann nlohmann added release item: 🔨 further change and removed please rebase Please rebase your branch to origin/develop labels Mar 24, 2022
Copy link
Owner

@nlohmann nlohmann left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@nlohmann nlohmann self-assigned this Mar 24, 2022
@nlohmann nlohmann linked an issue Mar 24, 2022 that may be closed by this pull request
@nlohmann nlohmann added this to the Release 3.10.6 milestone Mar 24, 2022
@nlohmann nlohmann merged commit ce35256 into nlohmann:develop Mar 24, 2022
@nlohmann
Copy link
Owner

Thanks a lot!

@kkarbowiak
Copy link
Contributor Author

Thank you, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor unit tests to use more convenient doctest assertion macros
3 participants