microsoft / vs-boost-unit-test-adapter
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 536 units with 5,744 lines of code in units (57.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (335 lines of code)
    • 18 simple units (570 lines of code)
    • 512 very simple units (4,839 lines of code)
0% | 0% | 5% | 9% | 84%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cs0% | 0% | 5% | 9% | 84%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
BoostTestAdapter/Boost0% | 0% | 7% | 9% | 83%
BoostTestAdapter/Utility0% | 0% | 8% | 12% | 79%
VisualStudioAdapter0% | 0% | 44% | 0% | 55%
BoostTestAdapter/Discoverers0% | 0% | 18% | 37% | 44%
BoostTestAdapter0% | 0% | 11% | 33% | 54%
BoostTestAdapterNunit0% | 0% | 0% | 2% | 97%
BoostTestAdapter/Settings0% | 0% | 0% | 13% | 86%
BoostTestAdapter/TestBatch0% | 0% | 0% | 28% | 71%
BoostTestAdapterNunit/Utility0% | 0% | 0% | 0% | 100%
BoostTestAdapterNunit/Fakes0% | 0% | 0% | 0% | 100%
BoostTestShared0% | 0% | 0% | 0% | 100%
BoostTestPackage0% | 0% | 0% | 0% | 100%
Antlr.DOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public override string ToString()
in BoostTestAdapter/Boost/Runner/BoostTestRunnerCommandLineArgs.cs
87 21 0
public IEnumerable GetDiscoverers()
in BoostTestAdapter/Discoverers/BoostTestDiscovererFactory.cs
49 14 2
public async Task GetDebuggingPropertiesAsync()
in VisualStudioAdapter/VisualStudio.cs
70 13 1
private static bool MapAndLoad()
in BoostTestAdapter/Utility/DebugHelperNative.cs
53 12 2
public void DiscoverTests()
in BoostTestAdapter/BoostTestDiscoverer.cs
45 11 4
private static IEnumerable GetTestMessages()
in BoostTestAdapter/Utility/VisualStudio/VSTestModel.cs
31 11 1
private static void ParseTestCaseLogEntries()
in BoostTestAdapter/Boost/Results/BoostXmlLog.cs
24 10 2
private void RunBoostTests()
in BoostTestAdapter/BoostTestExecutor.cs
52 10 3
private static string GetTestResultMessageText()
in BoostTestAdapter/Utility/VisualStudio/VSTestModel.cs
37 9 2
public int Execute()
in BoostTestAdapter/Boost/Runner/BoostTest162Runner.cs
26 8 3
public void DiscoverTests()
in BoostTestAdapter/Discoverers/ListContentDiscoverer.cs
66 8 3
public bool ShouldInclude()
in BoostTestAdapter/Settings/TestSourceFilter.cs
16 8 1
public static void SetWorkingEnvironment()
in BoostTestAdapter/Utility/BoostTestRunnerCommandLineArgsEx.cs
41 8 4
public IBoostTestRunner GetRunner()
in BoostTestAdapter/Boost/Runner/DefaultBoostTestRunnerFactory.cs
17 7 2
public void RunTests()
in BoostTestAdapter/BoostTestExecutor.cs
43 7 3
private VSTestCase GenerateTestCase()
in BoostTestAdapter/Discoverers/VSDiscoveryVisitor.cs
31 7 1
public static BoostTestAdapterSettings GetSettings()
in BoostTestAdapter/Settings/BoostTestAdapterSettingsProvider.cs
21 7 1
private static TestResult Aggregate()
in BoostTestAdapter/Boost/Results/BoostXmlReport.cs
15 6 2
private BoostTestRunnerCommandLineArgs AdaptArguments()
in BoostTestAdapter/Boost/Runner/BoostTest162Runner.cs
24 6 1
private static IEnumerable GenerateTestResults()
in BoostTestAdapter/BoostTestExecutor.cs
41 6 4