microsoft / vstest
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 1,061 files with 101,706 lines of code.
    • 14 very long files (15,487 lines of code)
    • 13 long files (8,983 lines of code)
    • 106 medium size files (32,643 lines of codeclsfd_ftr_w_mp_ins)
    • 117 small files (17,678 lines of code)
    • 811 very small files (26,915 lines of code)
15% | 8% | 32% | 17% | 26%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
xlf37% | 2% | 23% | 13% | 22%
cs2% | 10% | 37% | 20% | 28%
ps10% | 30% | 30% | 16% | 22%
yml0% | 21% | 16% | 19% | 42%
proj0% | 0% | 84% | 0% | 15%
psm10% | 0% | 100% | 0% | 0%
cmake0% | 0% | 100% | 0% | 0%
xslt0% | 0% | 100% | 0% | 0%
targets0% | 0% | 0% | 0% | 100%
props0% | 0% | 0% | 0% | 100%
vsixmanifest0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
shproj0% | 0% | 0% | 0% | 100%
psd10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/vstest.console64% | 11% | 9% | 8% | 7%
src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer29% | 20% | 9% | 10% | 29%
eng/common0% | 21% | 28% | 18% | 32%
scripts0% | 48% | 31% | 7% | 12%
src/Microsoft.TestPlatform.TestHostProvider0% | 41% | 20% | 0% | 38%
src/Microsoft.TestPlatform.ObjectModel0% | 4% | 59% | 8% | 26%
src/Microsoft.TestPlatform.Utilities0% | 33% | 0% | 15% | 50%
src/Microsoft.TestPlatform.CommunicationUtilities0% | 15% | 14% | 13% | 56%
src/Microsoft.TestPlatform.CrossPlatEngine0% | 5% | 35% | 41% | 16%
src/Microsoft.TestPlatform.Extensions.TrxLogger0% | 6% | 67% | 14% | 11%
src/Microsoft.TestPlatform.Common0% | 0% | 25% | 52% | 21%
src/Microsoft.TestPlatform.Client0% | 0% | 69% | 0% | 30%
src/Microsoft.TestPlatform.CoreUtilities0% | 0% | 32% | 9% | 58%
src/Microsoft.TestPlatform.Extensions.BlameDataCollector0% | 0% | 30% | 9% | 59%
src/Microsoft.TestPlatform.AdapterUtilities0% | 0% | 34% | 15% | 49%
src/Microsoft.TestPlatform.PlatformAbstractions0% | 0% | 25% | 14% | 59%
src/Microsoft.TestPlatform.Extensions.HtmlLogger0% | 0% | 54% | 0% | 45%
src/testhost.x860% | 0% | 65% | 15% | 18%
src/DataCollectors0% | 0% | 30% | 21% | 47%
src/package0% | 0% | 73% | 0% | 26%
scripts/perf0% | 0% | 100% | 0% | 0%
src/Microsoft.TestPlatform.Build0% | 0% | 32% | 0% | 67%
src/SettingsMigrator0% | 0% | 29% | 0% | 70%
src/AttachVS0% | 0% | 90% | 0% | 9%
src/Microsoft.TestPlatform.Execution.Shared0% | 0% | 0% | 68% | 31%
ROOT0% | 0% | 0% | 95% | 4%
src/datacollector0% | 0% | 0% | 70% | 29%
eng0% | 0% | 0% | 0% | 100%
scripts/build0% | 0% | 0% | 0% | 100%
playground/TestPlatform.Playground0% | 0% | 0% | 0% | 100%
src/testhost0% | 0% | 0% | 0% | 100%
playground/MSTest10% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
VsTestConsoleRequestSender.cs
in src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer
1197 39
xlf
Resources.es.xlf
in src/vstest.console/Resources/xlf
1102 -
xlf
Resources.cs.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.de.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.fr.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.it.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.ja.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.ko.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.pl.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.pt-BR.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.ru.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.tr.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.zh-Hans.xlf
in src/vstest.console/Resources/xlf
1099 -
xlf
Resources.zh-Hant.xlf
in src/vstest.console/Resources/xlf
1099 -
build.ps1
in scripts
952 -
TestRequestManager.cs
in src/vstest.console/TestPlatformHelpers
905 33
xlf
Resources.xlf
in src/vstest.console/Resources/xlf
895 -
VsTestConsoleWrapper.cs
in src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer
815 54
tools.ps1
in eng/common
757 -
DotnetTestHostManager.cs
in src/Microsoft.TestPlatform.TestHostProvider/Hosting
674 19
ConsoleLogger.cs
in src/vstest.console/Internal
651 17
RunConfiguration.cs
in src/Microsoft.TestPlatform.ObjectModel/RunSettings
620 3
InferRunSettingsHelper.cs
in src/Microsoft.TestPlatform.Utilities
613 25
TestRequestSender.cs
in src/Microsoft.TestPlatform.CommunicationUtilities
545 26
post-build.yml
in eng/common/templates/post-build
529 -
BaseRunTests.cs
in src/Microsoft.TestPlatform.CrossPlatEngine/Execution
521 20
XmlPersistence.cs
in src/Microsoft.TestPlatform.Extensions.TrxLogger/XML
506 38
DataCollectionManager.cs
in src/Microsoft.TestPlatform.Common/DataCollection
496 24
EqtTrace.cs
in src/Microsoft.TestPlatform.CoreUtilities/Tracing
491 44
Converter.cs
in src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility
475 19
TestRunCriteria.cs
in src/Microsoft.TestPlatform.ObjectModel/Client
468 29
TrxLogger.cs
in src/Microsoft.TestPlatform.Extensions.TrxLogger
458 23
BlameCollector.cs
in src/Microsoft.TestPlatform.Extensions.BlameDataCollector
455 14
TestRequestHandler.cs
in src/Microsoft.TestPlatform.CrossPlatEngine/EventHandlers
442 17
TestRunRequest.cs
in src/Microsoft.TestPlatform.Client/Execution
424 17
EventLogDataCollector.cs
in src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector
423 18
TestLoggerManager.cs
in src/Microsoft.TestPlatform.CrossPlatEngine/Client
420 23
DesignModeClient.cs
in src/Microsoft.TestPlatform.Client/DesignMode
418 18
proj
sign.proj
in src/package/sign
409 -
ManagedNameHelper.Reflection.cs
in src/Microsoft.TestPlatform.AdapterUtilities/ManagedNameUtilities
395 13
TestSession.cs
in src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer
391 30
FullSymbolReader.cs
in src/Microsoft.TestPlatform.ObjectModel/Navigation
376 11
NativeMethods.cs
in src/Microsoft.TestPlatform.ObjectModel/Navigation
372 5
TestPluginCache.cs
in src/Microsoft.TestPlatform.Common/ExtensionFramework
359 15
perf.ps1
in scripts/perf
355 -
DiscoveryRequest.cs
in src/Microsoft.TestPlatform.Client/Discovery
353 12
xlf
Resources.cs.xlf
in src/Microsoft.TestPlatform.ObjectModel/Resources/xlf
353 -
xlf
Resources.de.xlf
in src/Microsoft.TestPlatform.ObjectModel/Resources/xlf
353 -
xlf
Resources.es.xlf
in src/Microsoft.TestPlatform.ObjectModel/Resources/xlf
353 -
xlf
Resources.fr.xlf
in src/Microsoft.TestPlatform.ObjectModel/Resources/xlf
353 -
Files With Most Units (Top 20)
File# lines# units
VsTestConsoleWrapper.cs
in src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer
815 54
EqtTrace.cs
in src/Microsoft.TestPlatform.CoreUtilities/Tracing
491 44
TestPlatformEventSource.cs
in src/Microsoft.TestPlatform.CoreUtilities/Tracing
243 44
VsTestConsoleRequestSender.cs
in src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer
1197 39
XmlPersistence.cs
in src/Microsoft.TestPlatform.Extensions.TrxLogger/XML
506 38
TestRequestManager.cs
in src/vstest.console/TestPlatformHelpers
905 33
TestSession.cs
in src/Microsoft.TestPlatform.VsTestConsole.TranslationLayer
391 30
TestRunCriteria.cs
in src/Microsoft.TestPlatform.ObjectModel/Client
468 29
TestRequestSender.cs
in src/Microsoft.TestPlatform.CommunicationUtilities
545 26
InferRunSettingsHelper.cs
in src/Microsoft.TestPlatform.Utilities
613 25
DataCollectionManager.cs
in src/Microsoft.TestPlatform.Common/DataCollection
496 24
TestLoggerManager.cs
in src/Microsoft.TestPlatform.CrossPlatEngine/Client
420 23
TrxLogger.cs
in src/Microsoft.TestPlatform.Extensions.TrxLogger
458 23
InternalTestLoggerEvents.cs
in src/Microsoft.TestPlatform.Common/Logging
230 22
SocketCommunicationManager.cs
in src/Microsoft.TestPlatform.CommunicationUtilities
229 20
BaseRunTests.cs
in src/Microsoft.TestPlatform.CrossPlatEngine/Execution
521 20
Converter.cs
in src/Microsoft.TestPlatform.Extensions.TrxLogger/Utility
475 19
RollingFileTraceListener.cs
in src/Microsoft.TestPlatform.PlatformAbstractions/common/Tracing
220 19
DotnetTestHostManager.cs
in src/Microsoft.TestPlatform.TestHostProvider/Hosting
674 19
EventLogDataCollector.cs
in src/DataCollectors/Microsoft.TestPlatform.Extensions.EventLogCollector
423 18
Files With Long Lines (Top 20)

There are 626 files with lines longer than 120 characters. In total, there are 5271 long lines.

File# lines# units# long lines
build.ps1
in scripts
952 - 143
proj
sign.proj
in src/package/sign
409 - 139
xlf
Resources.it.xlf
in src/vstest.console/Resources/xlf
1099 - 111
xlf
Resources.fr.xlf
in src/vstest.console/Resources/xlf
1099 - 109
xlf
Resources.es.xlf
in src/vstest.console/Resources/xlf
1102 - 108
xlf
Resources.de.xlf
in src/vstest.console/Resources/xlf
1099 - 106
xlf
Resources.pl.xlf
in src/vstest.console/Resources/xlf
1099 - 103
xlf
Resources.pt-BR.xlf
in src/vstest.console/Resources/xlf
1099 - 102
xlf
Resources.ru.xlf
in src/vstest.console/Resources/xlf
1099 - 99
xlf
Resources.cs.xlf
in src/vstest.console/Resources/xlf
1099 - 98
xlf
Resources.tr.xlf
in src/vstest.console/Resources/xlf
1099 - 98
DotnetTestHostManager.cs
in src/Microsoft.TestPlatform.TestHostProvider/Hosting
674 19 71
xlf
Resources.ja.xlf
in src/vstest.console/Resources/xlf
1099 - 66
xlf
Resources.ko.xlf
in src/vstest.console/Resources/xlf
1099 - 63
xlf
Resources.zh-Hans.xlf
in src/vstest.console/Resources/xlf
1099 - 52
xlf
Resources.zh-Hant.xlf
in src/vstest.console/Resources/xlf
1099 - 52
xlf
Resources.xlf
in src/vstest.console/Resources/xlf
895 - 47
DotnetHostHelper.cs
in src/Microsoft.TestPlatform.CoreUtilities/Helpers
347 9 36
xlf
Resources.es.xlf
in src/Microsoft.TestPlatform.CrossPlatEngine/Resources/xlf
172 - 36
BlameCollector.cs
in src/Microsoft.TestPlatform.Extensions.BlameDataCollector
455 14 36