Skip to content

Convert unit testing to use new APIs instead of deprecated ones.#1269

Closed
chuckatkins wants to merge 1 commit intonlohmann:developfrom
chuckatkins:cleanup-deprecated-warnings
Closed

Convert unit testing to use new APIs instead of deprecated ones.#1269
chuckatkins wants to merge 1 commit intonlohmann:developfrom
chuckatkins:cleanup-deprecated-warnings

Conversation

@chuckatkins
Copy link
Contributor

Unit tests were still using deprecated APIs causing a lot of noise during compilation. This converts the unit tets to use the new APIs for iterators and stream operators.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e27a9e4 on chuckatkins:cleanup-deprecated-warnings into 910a895 on nlohmann:develop.

@nlohmann
Copy link
Owner

nlohmann commented Oct 2, 2018

I would still like to test the deprecated functions.

@chuckatkins
Copy link
Contributor Author

Sure thing. I was cleaning up warnings so instead of changing the code here would you be okay with just disabling the deprecation warnings for these files?

@nlohmann
Copy link
Owner

nlohmann commented Oct 2, 2018

I think we should not change the test suite, but maybe just add flags to suppress the deprecation warnings. On the other hand, I am not too much concerned about these warnings, because in the end they exactly make sense...

@chuckatkins
Copy link
Contributor Author

Closing. Will keep deprecated apis in testing but disable deprecation warnings for these files only in a new pr

@chuckatkins chuckatkins closed this Oct 2, 2018
chuckatkins pushed a commit to chuckatkins/json that referenced this pull request Oct 2, 2018
In follow up from the conversation in nlohmann#1269, this adds the
`-Wno-deprecate-definitions` flag to unit tests to allow them to
test deprecated APIs without all the noisy compiler warnings.
This also refactors the setting of build properties for test targets
to use `target_<...>` commands instead of `set_properties()`.
chuckatkins pushed a commit to chuckatkins/json that referenced this pull request Oct 2, 2018
In follow up from the conversation in nlohmann#1269, this adds the
`-Wno-deprecate-declarations` flag to unit tests to allow them to
test deprecated APIs without all the noisy compiler warnings.
This also refactors the setting of build properties for test targets
to use `target_<...>` commands instead of `set_properties()`.
chuckatkins pushed a commit to chuckatkins/json that referenced this pull request Oct 2, 2018
In follow up from the conversation in nlohmann#1269, this adds the
`-Wno-deprecate-declarations` flag to unit tests to allow them to
test deprecated APIs without all the noisy compiler warnings.
This also refactors the setting of build properties for test targets
to use `target_<...>` commands instead of `set_target_properties()`.
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