diff options
| author | Leitwolf | 2026-10-30 00:06:27 +0300 |
|---|---|---|
| committer | GitHub | 2026-10-30 00:06:27 +0300 |
| commit | 471756b77331fa1ab77bc94e6aae228baef903e0 (patch) | |
| tree | 3af5223ff664544d15eaf20a10eccdf3465d9958 /src/Progmasoft/Runner/Runner.cpp | |
| parent | 1d48419b7ef642917ebf7dfd16c3bc1b3050d8f1 (diff) | |
| parent | 0b4b57a0688f2943f4c797c20d68d533cf70fd15 (diff) | |
| download | catch3-471756b77331fa1ab77bc94e6aae228baef903e0.tar.gz | |
Merge pull request #20 from Progmasoft/feature/catch3-json
Read the options of a project from catch3.json
Diffstat (limited to 'src/Progmasoft/Runner/Runner.cpp')
| -rw-r--r-- | src/Progmasoft/Runner/Runner.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Progmasoft/Runner/Runner.cpp b/src/Progmasoft/Runner/Runner.cpp index 7e69206a..62acac2c 100644 --- a/src/Progmasoft/Runner/Runner.cpp +++ b/src/Progmasoft/Runner/Runner.cpp @@ -16,8 +16,10 @@ #include <chrono> #include <cstdio> #include <exception> +#include <filesystem> #include <map> #include <random> +#include <system_error> #include "Analysis.hpp" #include "Catalog.hpp" @@ -31,6 +33,7 @@ #include "Options.hpp" #include "Planner.hpp" #include "Process.hpp" +#include "ProjectConfig.hpp" #include "ResultsJson.hpp" #include "Scheduler.hpp" @@ -523,7 +526,9 @@ namespace Progmasoft::Catch3 { rest.assign(arguments.begin() + 1, arguments.end()); } - auto parsed = Runner::ParseOptions(rest); + std::error_code here; + auto parsed = Runner::ParseCommandLine( + rest, std::filesystem::current_path(here)); if (!parsed) { PrintError(parsed.GetError().Message()); @@ -558,6 +563,11 @@ namespace Progmasoft::Catch3 } std::vector<std::string> notes; + if (!options.configPath.empty() + && options.verbosity == Runner::Verbosity::kVerbose) + { + notes.push_back("configuration from " + options.configPath); + } if (BazelTest()) { ApplyBazel(options, notes); |