[wesnoth-commits] [wesnoth/wesnoth] 4e19bc: Test config::add_child with parametrized tests

CrawlCycle noreply at github.com
Fri Nov 27 15:46:36 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 4e19bca6e8669b6ee850daa7d3de70c9be59294b
      https://github.com/wesnoth/wesnoth/commit/4e19bca6e8669b6ee850daa7d3de70c9be59294b
  Author: CrawlCycle <73139676+CrawlCycle at users.noreply.github.com>
  Date:   2020-11-27 (Fri, 27 Nov 2020)

  Changed paths:
    M src/tests/test_config.cpp

  Log Message:
  -----------
  Test config::add_child with parametrized tests

This commit tests the three config::add_child in src/config.cpp.
The config::add_child are among the most popular methods and
have at least 150 usages.

Notably, this commit adds a parametrized test through the
BOOST_DATA_TEST_CASE macro provided by boost/test/data/
test_case.hpp. None of the existing tests is parametrized.

Boost 1.58 and below do not support parametrized tests.
Ubuntu 16.04 ships with Boost 1.58 and reaches end of life on
April 2021.

This commit also formats the names of the tests as
method_name_StateOfThis_allArguments_AllExpectedBehaviors.





More information about the Commits mailing list