[Boost-bugs] [Boost C++ Libraries] #12953: access to master_test_suite().{argc, argv}

Subject: [Boost-bugs] [Boost C++ Libraries] #12953: access to master_test_suite().{argc, argv}
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-04-07 09:17:55


#12953: access to master_test_suite().{argc, argv}
------------------------------+---------------------
 Reporter: ope-devel@… | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: test
  Version: Boost 1.63.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 Hello,

 for testing I use a "loader" class to read input and expected files from
 filesystem. These files are used by the data-driven test cases. The path
 to these files are given from command line.

 Due to the fact that datasets are creating static objects on file scope, I
 can't access them by calling master_test_suite().{argc, argv} outside of
 e.g. BOOST_AUTO_TEST_CASE where the "loader" exist.

 Using the Fixture approach fails to compile, see attachement. Further, as
 far I understood, the files would be loaded again for each data driven
 test, which is not intended.

 Following the docs, I didn't found a way to get access to the (in best
 case from boost.test args pruned) argc/argv. Is it a missing feature and
 bug?

 The initial thread is on ML "[boost] [Boost.Test] access to
 boost::unit_test::framework::master_test_suite().{argc, argv} outside from
 BOOST_TEST"

 Thanks,
 Olaf

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12953>
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-04-07 09:20:40 UTC