2
0
mirror of https://github.com/boostorg/test.git synced 2026-01-19 16:52:11 +00:00

137 Commits

Author SHA1 Message Date
Raffi Enficiaud
847212ae0c Improving global initialization and fixtures
- new macros:
  BOOST_TEST_GLOBAL_FIXTURE: for global "real" fixtures
  BOOST_TEST_GLOBAL_CONFIGURATION: for global configuration of observers.
- deprecating BOOST_GLOBAL_FIXTURE. BOOST_GLOBAL_FIXTURE and BOOST_TEST_GLOBAL_CONFIGURATION are currently
  fully equivalent, the former being confusing in term of scope/role is deprecated
- SFINAE detection for a setup/teardown function within the fixture class
- Attaching global fixture to the main or master test unit being executed, exactly as other fixtures. Global fixtures
  via BOOST_TEST_GLOBAL_FIXTURE registers themselves in a particular field of the framework and are attached each time
  the framework executes the tests, such that we can run the framework on another test root and still benefit from the
  global fixtures. The global fixtures are appended to already existing fixtures (in case the master test suite is not
  the root of the current execution tree).
- Checking that the framework setup is not failing for running the test
- RAII class for restoring the global fixtures
- Tests on the setup/teardown detection
- Tests on global fixtures and baseline
- Fixing several logging issues

Some additional refactoring
- renaming m_curr_test_case to m_curr_test_unit
- function for providing the current test unit (and not only the current test case)
- for output_stream comparison: stops properly if the reference stream is shorter than the current one,
  initialises the read char correctly to 0 and prints a proper ~ at the mismatch location
2017-06-22 09:20:58 +02:00
Raffi Enficiaud
875dda8de7 JUnit logger: implementation
- Make JUnit logger discard the log levels to log all events
- Currently JUnit discards the file directory where the assertion is being logged
- Uses tree visitation at the end of the test suite in order to generate the log file
2016-08-18 00:17:31 +02:00
Gennadiy Rozental
d15f4c4f52 interaction based testing is killed (for now) 2015-05-24 18:40:56 -04:00
Raffi Enficiaud
40439a6593 Merge branch 'develop' into local/new_filtering_merge
* develop: (62 commits)
  Fixing tests on GCCs
  Fixing test on GCCs
  Fixing the tests of this file for GCCs
  Fix collection test on Gccs
  Adding support for C++11 to old gcc compilers as well Fixing issues with arrays
  Fixing counter for r-value ref supported but std::vector still lacking the proper constructor
  Once for all the "Mismatch at" instead of "Mismatch in" for every type of collection
  silence a warning in gcc 4.5
  Revert "introduce fpc::tolerance_based to be used instead of if_floating_point. This should allow us to extend tolerance based comparisons t omore types"
  Revert "introduce fpc::tolerance_based to be used instead of is_floating_point. This should allow us to extend tolerance based comparisons t omore types"
  introduce fpc::tolerance_based to be used instead of is_floating_point. This should allow us to extend tolerance based comparisons t omore types
  introduce fpc::tolerance_based to be used instead of if_floating_point. This should allow us to extend tolerance based comparisons t omore types
  remove executable from header
  remove executable form header
  fix MSVC-12 tests
  ENABLE new test tools fix few leftovers from implementation of new FPV comparisons restore test case in test_fp_comparisons.cpp
  test to clear the error on CrystaX runners
  some doc
  const of the elements of the table
  Trying to fix the array problem on Clang 3.4
  ...

Conflicts:
	doc/examples.qbk
	doc/test_organization/decorators.qbk
	doc/test_organization/parametric_test_case_generation.qbk
	include/boost/test/data/monomorphic/fwd.hpp
	include/boost/test/data/monomorphic/generators/random.hpp
	include/boost/test/data/monomorphic/singleton.hpp
	include/boost/test/tools/floating_point_comparison.hpp
	test/test_files/test_tools_test.pattern
2015-03-25 22:19:11 +01:00
Gennadiy Rozental
46e441d0c3 remove executable bit 2015-02-11 14:22:13 -05:00
Raffi Enficiaud
3824842a18 doxygen cosmetics 2015-01-26 10:08:40 +01:00
Raffi Enficiaud
9230a5642e cleanups + doxygen style file description 2014-04-29 10:11:37 +02:00
Gennadiy Rozental
0fc9133743 renamed unit_test_suite.ipp into test_tree.ipp
moved unit_test_parameters.hpp from detail into main directory


[SVN r74790]
2011-10-08 04:53:13 +00:00
Gennadiy Rozental
a5dbedae8c rename
[SVN r74672]
2011-10-03 20:20:27 +00:00
Gennadiy Rozental
28f4f74319 added decorator.cpp
[SVN r74655]
2011-10-02 18:40:43 +00:00
Gennadiy Rozental
617ed13040 copyright update
[SVN r62022]
2010-05-16 04:03:05 +00:00
Troy D. Straszheim
3d0828216f rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Troy D. Straszheim
038b34683f Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00
Troy D. Straszheim
ad39cd2a51 Merge of cmakefiles *from* (that's right, *FROM* :/ ) release branch.
[SVN r53150]
2009-05-21 14:05:15 +00:00
Michael A. Jackson
a86ff0cdb6 Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
[SVN r49510]
2008-11-01 13:15:41 +00:00
Gennadiy Rozental
a574fe654c date
[SVN r47788]
2008-07-25 03:52:52 +00:00
Gennadiy Rozental
de0e8f5180 date
[SVN r47786]
2008-07-25 03:46:50 +00:00
Gennadiy Rozental
183632ef29 copyright update
[SVN r47154]
2008-07-07 01:06:38 +00:00
Gennadiy Rozental
8bb49d96d3 minor cleanup
final major piece of this update: debug services (almost complete: without stack dump)

[SVN r40451]
2007-10-25 05:38:19 +00:00
Gennadiy Rozental
aa182409ae *** empty log message ***
[SVN r32052]
2005-12-14 06:18:50 +00:00
Gennadiy Rozental
2e6993200b no message
[SVN r27763]
2005-03-22 07:18:50 +00:00
Gennadiy Rozental
e2d63e7567 This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
[SVN r27444]
2005-02-20 08:28:35 +00:00
Gennadiy Rozental
b86994205f supplied_log_formatters split
change formatters interface to simplify result interface


[SVN r26986]
2005-02-01 09:01:00 +00:00
Gennadiy Rozental
d143f0dca4 implementation moved into headers section to eliminate dependency of included/minimal component on src directory
[SVN r26813]
2005-01-22 19:26:38 +00:00
Gennadiy Rozental
aef98e24b0 xml printing helpers reworked to employ generic custom manipulators
[SVN r26771]
2005-01-21 07:26:41 +00:00
Gennadiy Rozental
5ed520aa41 added automatic test case run timing
[SVN r26770]
2005-01-21 07:23:49 +00:00
Gennadiy Rozental
732af178dc detect presence of debugger under VC and automatically prevent catching system errors
[SVN r26769]
2005-01-21 07:21:38 +00:00
Victor A. Wagner Jr.
6a703dac2f Changed the \r\r\n back to \r\n on windows so we don't get errors when compiling
on VC++8.0.  I don't know why Microsoft thinks it's a good idea to call this an error,
but they do.  I also don't know why people insist on checking out files on Windows and
copying them to a unix system to check them in (which will cause exactly this problem)


[SVN r26746]
2005-01-19 16:34:07 +00:00
Victor A. Wagner Jr.
f8b5148e56 deleted redundant \r in many \r\r\n sequences of the source. VC8.0 doesn't like them
[SVN r26735]
2005-01-19 06:40:05 +00:00
Gennadiy Rozental
adf6f1f5e7 unit_test_log rework:
eliminated need for ::instance()
   eliminated need for << end and ...END macro
   straitend interface between log and formatters
   change compiler like formatter name
   minimized unit_test_log interface and reworked to use explicit calls


[SVN r26720]
2005-01-18 08:30:09 +00:00
Gennadiy Rozental
cccdb5113d ios fix for classic iostreams
[SVN r25218]
2004-09-19 09:22:13 +00:00
Gennadiy Rozental
25a8a3852e RW STL 6.0 fix
[SVN r25184]
2004-09-18 05:44:21 +00:00
Gennadiy Rozental
98f9e66cb1 XML typo
[SVN r25173]
2004-09-17 12:34:13 +00:00
Gennadiy Rozental
988ac68788 another tru64cxx65 workaround
[SVN r24574]
2004-08-19 00:02:21 +00:00
Gennadiy Rozental
8ebbfa0f8d first tru64cxx65 fix
[SVN r24366]
2004-08-10 04:02:18 +00:00
Gennadiy Rozental
7d9b934627 don't use wchar if BOOST_NO_CWCHAR is defined
[SVN r24028]
2004-07-25 08:49:15 +00:00
Dave Abrahams
75894f51d5 Re-fixed for VC
[SVN r23995]
2004-07-23 14:49:36 +00:00
Dave Abrahams
70044de3a8 Got tired of waiting for workarounds; fix for cygwin gcc2 and mingw-2.0.
[SVN r23984]
2004-07-23 11:59:31 +00:00
Gennadiy Rozental
4a242913bb preper wide char workaround
[SVN r23949]
2004-07-22 09:59:20 +00:00
Douglas Gregor
aa157007e6 Documentation update from Jon T. Pedant
[SVN r23847]
2004-07-20 17:03:55 +00:00
Gennadiy Rozental
3e12881242 added proper encoded of XML PCDATA
min->max bug fix


[SVN r23784]
2004-07-19 12:10:56 +00:00
Gennadiy Rozental
b9932e5674 added proper encoded of XML PCDATA
[SVN r23783]
2004-07-19 12:09:25 +00:00
Gennadiy Rozental
c950aab3be suppress warnings
[SVN r23782]
2004-07-19 12:08:48 +00:00
Gennadiy Rozental
0eceec4d32 use std::min
[SVN r23245]
2004-06-29 04:33:20 +00:00
Eric Niebler
ecda2f0b9d remove std_min and std_max, update minmax coding guidelines
[SVN r23162]
2004-06-23 04:49:48 +00:00
Gennadiy Rozental
574c2fd4ee detail namespace renamed
[SVN r23039]
2004-06-07 07:34:23 +00:00
Gennadiy Rozental
27cc346291 eliminate c_string_literal typedef
[SVN r22944]
2004-05-27 06:36:26 +00:00
Gennadiy Rozental
b76f8e66b2 eliminate warnings
[SVN r22942]
2004-05-27 06:29:59 +00:00
Gennadiy Rozental
787334d247 support for wide C string comparizon
[SVN r22941]
2004-05-27 06:29:20 +00:00
Gennadiy Rozental
8e78395827 licence update
[SVN r22883]
2004-05-21 06:26:11 +00:00