Re: [Boost-bugs] [Boost C++ Libraries] #11543: Adding Test Groups to BOOST.TEST

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11543: Adding Test Groups to BOOST.TEST
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-31 04:46:49


#11543: Adding Test Groups to BOOST.TEST
-------------------------------+----------------------
  Reporter: sumedhghaisas@… | Owner: rogeeff
      Type: Feature Requests | Status: reopened
 Milestone: To Be Determined | Component: test
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by sumedhghaisas@…):

 Okay I think you are right... The extra thing that I would love to have is
 to pass multiple classes instead of multiple params... sort of like...


 {{{
 typedef std::tuple<Class A, Class B, Class C> t_params;

 BOOST_DATA_TEST_SUITE( s1, t_params )

 BOOST_DATA_TEST_CASE(test1) {

     T test_object(...)... // T is templated class

 }

 BOOST_DATA_TEST_CASE(test2) {

      T test_object(...)... // T is templated class

 }

 BOOST_TEST_SUITE_END()

 }}}

 Basically the tests will run for each class mentioned. I agree this way is
 much cleaner than my way. But I am not sure about the implementation of
 such thing, that I have to check. This kind of feature is helpful
 especially when many classes implement the same thing different ways with
 similar APIs.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11543#comment:7>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC