argparse/test
Sean Robinson 97204363b5 Refactor configuration for StaticAnalysis
Upstream StaticAnalysis looks to be changing for more flexibility with
source files to process.  While these changes may eventually benefit
argparse, the public interfaces are in flux and we need a stable tool.
argparse also needs a SA change which is not yet upstream.

Trying to run clang-tidy via StaticAnalysis on a single file in a
directory with many source file is not easy, so move the analysis kernel
to a location (i.e. tools) where it is the only C++ source file.

Another benefit is cppcheck no longer needs to be told to ignore the test
sources.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-02-07 11:51:22 -07:00
..
.gitignore Renamed directories 2019-04-01 22:01:40 -04:00
CMakeLists.txt Refactor configuration for StaticAnalysis 2022-02-07 11:51:22 -07:00
doctest.hpp Closes #53 2019-11-21 09:08:49 -06:00
main.cpp Annotate test cases with doctest::test_suite 2019-11-21 14:24:50 -06:00
README.md Update README.md 2019-04-01 22:03:59 -04:00
test_actions.cpp Run Argumnet::action functor for zero-parameter arguments 2021-10-27 09:02:33 -07:00
test_append.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_compound_arguments.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_const_correct.cpp Introduce separate const-correctness test 2021-08-03 22:12:05 +02:00
test_container_arguments.cpp Closes #73 2020-05-08 14:35:05 -05:00
test_default_args.cpp Allow removal of default arguments (i.e. --help and --version) 2021-10-27 09:02:33 -07:00
test_get.cpp Confirm arguments are parsed before allowing ArgumentParser::get 2021-09-14 09:55:03 -07:00
test_help.cpp Allow removal of default arguments (i.e. --help and --version) 2021-10-27 09:02:33 -07:00
test_invalid_arguments.cpp Improve thrown message in case of invalid argument. 2021-11-05 09:56:17 +01:00
test_is_used.cpp Add ArgumentParser.is_used to discern user-supplied values from defaults 2021-04-07 14:09:10 -07:00
test_issue_37.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_negative_numbers.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_optional_arguments.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_parent_parsers.cpp Replace simple type-converting Argument.action with Argument.scan in tests 2021-08-24 09:25:49 -07:00
test_parse_args.cpp Add argument name in exception thrown by Argument::consume 2021-09-14 09:54:43 -07:00
test_positional_arguments.cpp Add test case for missing expected positional argument 2021-09-14 09:44:35 -07:00
test_repr.cpp add tests for repr() and extend tests for help msg 2020-12-15 19:05:18 +03:00
test_required_arguments.cpp Closes #73 2020-05-08 14:35:05 -05:00
test_scan.cpp Closes #73 2020-05-08 14:35:05 -05:00
test_utility.hpp Unify container operations 2019-05-12 17:17:21 +02:00
test_value_semantics.cpp Introduce separate const-correctness test 2021-08-03 22:12:05 +02:00
test_version.cpp Improve thrown message in case of invalid argument. 2021-11-05 09:56:17 +01:00

Argparse Tests

Linux

$ mkdir build
$ cd build
$ cmake ../.
$ make
$ ./tests

Windows

  1. Generate Visual Studio solution
$ mkdir build
$ cd build
$ cmake ../. -G "Visual Studio 15 2017"
  1. Open ARGPARSE.sln
  2. Build tests in RELEASE | x64
  3. Run tests.exe