Commits

Matt Oswald committed 1846f68

console runner now only runs unique test assemblies

  • Participants
  • Parent commits 32eaa19

Comments (0)

Files changed (2)

xUnit++.console/CommandLine.cpp

 #include "CommandLine.h"
 #include <algorithm>
+#include <cctype>
 #include <functional>
 #include <queue>
 #include <sstream>
             }
             else
             {
-                options.libraries.push_back(opt);
+                for (auto &c : opt)
+                {
+                    c = (char)std::tolower(c);
+                }
+
+                options.libraries.insert(opt);
             }
         }
 

xUnit++.console/CommandLine.h

 #define COMMANDLINE_H_
 
 #include <map>
+#include <set>
 #include <string>
 #include <tuple>
 #include <vector>
         std::vector<std::string> testNames;
         std::multimap<std::string, std::string> inclusiveAttributes;
         std::multimap<std::string, std::string> exclusiveAttributes;
-        std::vector<std::string> libraries;
+        std::set<std::string> libraries;
         std::string xmlOutput;
         int timeLimit;
         int threadLimit;