Martchus
9744efda70
Ensure default testfiles directory for working copy exists
5 years ago
Martchus
684e97ce2a
Allow customizing the config header file
...
by setting the 'META_CUSTOM_CONFIG' variable
5 years ago
Martchus
2264ea5cf2
Add trait to check whether type is complete
5 years ago
Martchus
a4e7cbd5c3
Make target 'interface_sources_for_qtcreator' unique
5 years ago
Martchus
e283eea1f0
Prevent using executable of header-only lib for coverage
5 years ago
Martchus
cf4789e94d
testutils: Allow asserting maps/hashes
5 years ago
Martchus
ab42e9d96c
Improve documentation of testutils
5 years ago
Martchus
cc5d6052f5
test application: Allow to skip argument parsing
5 years ago
Martchus
39f69f94d7
Make CPP_UTILITIES_TRAITS_DEFINE_TYPE_CHECK usabe from any ns
5 years ago
Martchus
f9e4c74aff
argument parser: Expose occurrence info directly
...
Primarily for testing porposes, see documentation.
5 years ago
Martchus
cc09fdc35f
Use Argument::varValueCount everywhere
5 years ago
Martchus
6bc97e5b16
Fix API doc (\macro -> \def)
5 years ago
Martchus
f3777d7159
Improve description and README.md
5 years ago
Martchus
a7880e3d0c
Remove *.qm files from targets when built-in translations enabled
...
This prevents updating *.ts files twice and in parallel leading to
build errors.
5 years ago
Martchus
924481b033
Fix platform check for readFallback...() functions
5 years ago
Martchus
6fd2603cff
teat application: Prevent copying dir entries
5 years ago
Martchus
9fb347db24
Add generic macro for defining (custom) type checks
5 years ago
Martchus
34f3ebb45d
Let tests find the application path without extra args
...
Currently the path of the application to be tested always had to
be specified either manually using the -a argument or by running
the tests via the build system targets. The first option is annoying
and the second option not so nice when using Qt Creator and the
debugger.
This commit makes tests assume the application to be tested is
called like the test executable itself, just without "_tests"-suffix.
5 years ago
Martchus
2bb4aa36a4
Let tests find the testfiles from sources without extra args
...
Currently the path of the testfiles always had to be specified
either manually using the -p argument or by running the tests
via the build system targets. The first option is annoying and
the second option not so nice when using Qt Creator and the
debugger.
This commit allows tests to find the testfiles from the source
directory automatically (as fallback). This is achieved by
creating a file containing the path of the source directory
with CMake. Note that this file can only be found if the working
directory is set to the binary directory (default in Qt Creator).
5 years ago
Martchus
3c16d2beb8
Export determineTerminalSize() correctly
5 years ago
Martchus
fa39e2a1aa
Add traits to check for reserve() and size()
5 years ago
Martchus
60e4fead05
Deprecate FakeQtConfigArguments
5 years ago
Martchus
dab05bdade
Improve coding style in test utilities
5 years ago
Martchus
2203e0a335
Set dependencies of tidy target correctly
5 years ago
Martchus
a869aa8def
Do not add sources to header-only libs
5 years ago
Martchus
e393af5dbb
testutils: Print indices of iteratables (on assert equal fail)
5 years ago
Martchus
a0c6868e88
Add conversion methods: multiline str <=> array of lines
5 years ago
Martchus
d25265fee1
Don't add include path for config.h to header-only libs
...
This causes CMake errors and CMake is acutally right, it makes
no sense because the config header is only available during build
but a header-only lib is not being built.
5 years ago
Martchus
2ec3df889f
Allow accessing application path from TestApplication
...
Make it static because when this function becomes useful,
the (singleton) instance is likely not available.
5 years ago
Martchus
cb02d5c733
Add target for building all tests
...
This allows to build all tests at once without
adding them to "all" target. In contrast to the
check target, the tests are not executed.
5 years ago
Martchus
ba620c5e0a
Apply clang-format
5 years ago
Martchus
46f652ad00
Improve readability of ArgumentReader::read and use Phrases
5 years ago
Martchus
e459dca98d
Merge pull request #8 from svnpenn/master
...
commandlineutils.cpp: correct rows and columns
5 years ago
Steven Penny
e07782ae16
commandlineutils.cpp: correct rows and columns
...
From here:
http://docs.microsoft.com/windows/console/coord-str
- X is columns
- Y is rows
currently that is reversed with the codebase
5 years ago
Martchus
9829dbe727
Make use of escape codes configurable
5 years ago
Martchus
6933b7b33e
argument parser: Add public accessor for callback
5 years ago
Martchus
4011040e57
Add Phrases::EndFlush
5 years ago
Martchus
f35124eff5
Document META_PUBLIC_*_LIB_DEPENDS
5 years ago
Martchus
ae249140bc
Use also actual lib name to check whether dependency is public
...
In accordance to 'Fix adding public Qt modules in pkg-config'
in qtutilities (b2e3506ff59ae4b610c91bd9ee96333871fa5864).
5 years ago
Martchus
472e0296d0
Fix adding public static lib dependencies
5 years ago
Martchus
cf09db8166
Export ostream &operator<<(std::ostream&,const Failure&failure)
5 years ago
Martchus
0b19d0b523
Export std::ostream&operator<<(std::ostream&,Phrases) correctly
5 years ago
Martchus
784f3d963a
Add 'makepkg'-style messages to Phrases
5 years ago
Martchus
ee66c56905
Improve documentation
5 years ago
Martchus
46bfbdd829
Allow initialization of values for shell completion in callback
...
Use case is implementing completion for syncthingctl also for
device and folder IDs.
5 years ago
Martchus
b7b218c831
Wrap strings which are likely long when printing help
...
to preserve indentation
5 years ago
Martchus
6e80640db5
Add method to determine terminal size
5 years ago
Martchus
027e784f1c
Only make extra newline before example for top-level args
5 years ago
Martchus
8750e385f1
Improve doc for ArgumentParser::parseArgs()/readArgs()
5 years ago
Martchus
2f5f197b95
Add ArgumentParser::parseArgsOrExit()
...
to reduce boilerplate code for error handling when
parsing CLI arguments.
5 years ago