Martchus
6d7a6ab735
Don't pretent to add arguments implicitely
2019-04-13 20:33:39 +02:00
Martchus
cfdfc302db
Use exit function passed to argument parser
2019-04-13 20:33:39 +02:00
Martchus
9a50d2b8df
Remove types
2019-04-13 20:33:39 +02:00
Marius Kittler
132f936c57
Remove workaround for GCC Bug 66145
2019-04-13 20:33:39 +02:00
Marius Kittler
2f141adb6f
Remove random() function
2019-04-13 20:33:39 +02:00
Marius Kittler
07a74d5fa8
Rename openFromFileDescriptor() to open()
2019-04-13 20:33:39 +02:00
Martchus
ac8fe5d2c7
Improve constructors for test application
2019-04-13 20:33:39 +02:00
Martchus
bc8ea407bc
Prevent use of static variables in ArgumentParser
...
Have --no-color and --help added by default rather
so argument parser is in control over them and don't
has to use static functions.
2019-04-13 20:33:39 +02:00
Martchus
789af62d97
Add workingCopyPathAs()
2019-01-20 22:56:22 +01:00
Martchus
d21cde6fe3
Remove unused variable in testFilePath()
2019-01-20 22:16:07 +01:00
Martchus
8b35d06aa7
Improve documentation for testFilePath()/workingCopyPath()
2019-01-20 22:15:35 +01:00
Martchus
757a3476cc
test utilities: Print testfile path in all cases
2018-11-02 22:36:22 +01:00
Martchus
98edb5a67c
Allow omitting second fraction in DateTime::fromIsoString
2018-11-01 20:20:32 +01:00
Martchus
44e4d1335a
Fix Traits::IsSpecializationOf to ignore cv qualifier
...
So eg. const/volatile std::string is also considered a
specialization of std::basic_string like one would expect.
2018-10-29 23:16:16 +01:00
Martchus
34eac527ee
Log actual application path when testing
2018-10-25 18:20:14 +02:00
Martchus
ca6663a6d5
Prevent breaking source compatibility of TESTUTILS_ASSERT_EXEC
2018-10-21 21:21:01 +02:00
Martchus
6825e0367f
Test Traits::HasOperatorBool
2018-10-21 21:14:51 +02:00
Martchus
66b4b782cd
Improve TESTUTILS_ASSERT_EXEC to print stdout/stderr on failure
2018-10-21 20:22:43 +02:00
Martchus
366f722904
Fix documentation for workingCopyPath()
2018-10-07 21:43:34 +02:00
Martchus
17fc55a2c6
Fix compilation of testutils under Windows without NativeFileStream
2018-10-07 21:14:56 +02:00
Martchus
8e32fc0229
Apply clang-format
2018-10-06 16:18:53 +02:00
Martchus
929c817c08
Test test utilities not used anyways
2018-10-06 16:18:46 +02:00
Martchus
61edf58c3e
Fix workingCopyPathMode
2018-10-06 16:18:39 +02:00
Martchus
5356d793fc
Make all tests pass under Windows
...
* Workaround some issues
* Disable some tests (better than not running tests
at all)
2018-10-03 22:37:55 +02:00
Martchus
8e3c40abb5
Make conversion from multi byte to wide string generic
2018-10-03 21:26:41 +02:00
Martchus
d1f3f51769
Disable not working test for random under Windows
...
The function will be removed in next major release anyways.
2018-09-30 14:48:11 +02:00
Martchus
199a4f9454
Make conversion tests pass under Windows
2018-09-30 14:44:39 +02:00
Martchus
ac6b7ae68e
Fix some of the IO tests to pass under Windows
...
Still, the workaround for catching std::ios_base::failure
doesn't seem to work.
2018-09-30 14:40:16 +02:00
Martchus
25ef4e28a2
Make tests compile under Windows
2018-09-30 13:55:30 +02:00
Martchus
749eea2ab6
Support NativeFileStream via Boost.Iostreams
...
So it can also be enabled when not using libstdc++.
2018-09-30 13:55:30 +02:00
Martchus
3d3378c878
Improve experimental value conversion for arg parser
...
* Fix issues and handle conversion errors
* Add tests
2018-09-22 17:04:23 +02:00
Martchus
826c43ef8b
Include missing cerrno
2018-08-12 22:17:09 +02:00
Martchus
61f7ce90e1
Improve coding style (after running clang-tidy)
2018-08-12 22:09:22 +02:00
Martchus
d0bf2fb390
Add more debug output to TestApplication::workingCopyPathMode
2018-08-11 22:21:48 +02:00
Martchus
2347677495
Adjust name of working copy until unique if unable to override
2018-07-28 20:51:25 +02:00
Martchus
f50321f414
Improve coding style in testutils.cpp
2018-07-28 20:00:28 +02:00
Martchus
0f45817956
Make output of workingCopyPathMode() even more verbose
2018-07-28 19:39:11 +02:00
Martchus
c53472fdce
Make failing TestApplication::workingCopyPathMode() more verbose
2018-07-28 15:59:31 +02:00
Marius Kittler
9743dc7d28
Improve dereferenceMaybe()
...
* Support smart-pointers and other types which can
be dereferenced
* Add tests
* Add documentation
2018-07-10 13:17:04 +02:00
Martchus
d029b33a19
Add TESTUTILS_ASSERT_LIKE macro
2018-07-02 23:09:52 +02:00
Martchus
27d5041e06
Add Traits::IsSpecializingAnyOf
2018-06-24 20:13:41 +02:00
Martchus
0fb92e3685
Add Traits::None
2018-06-23 14:33:00 +02:00
Martchus
e0fee70d58
Print vector<char> and similar in hex notation on assert fail
2018-06-21 23:27:05 +02:00
Martchus
e4bf7142f5
Add Traits::Is{Any,None}Of
2018-06-20 23:07:08 +02:00
Martchus
5e8d8cb7d1
Show dashes in suggestions
2018-05-11 16:15:02 +02:00
Martchus
24720bbbc1
Fix passing cursor position to findSuggestions()
2018-05-11 15:51:30 +02:00
Martchus
1aa8b387e1
Apply clang-format
2018-05-08 00:35:51 +02:00
Martchus
f0b777207e
Fix dependency version under GCC 8
2018-05-08 00:35:41 +02:00
Martchus
a4435bbcf3
Fix usage of enable_if with GCC 8
...
Seems like the trick with the three dots isn't working
with GCC 8 anymore. So let's make it a default template
parameter then.
Not sure whether GCC 8 is here correct and whether this
workaround causes further trouble.
2018-05-07 23:22:43 +02:00
Martchus
8ef92cbf47
Use Levenshtein algo to provide suggestions if arg not found
2018-05-07 21:59:23 +02:00