microsoft / testfx
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 407 files with 40,544 lines of code.
    • 0 very long files (0 lines of code)
    • 7 long files (4,316 lines of code)
    • 60 medium size files (18,467 lines of codeclsfd_ftr_w_mp_ins)
    • 60 small files (8,268 lines of code)
    • 280 very small files (9,493 lines of code)
0% | 10% | 45% | 20% | 23%
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
cs0% | 13% | 34% | 21% | 29%
ps10% | 17% | 29% | 25% | 27%
yml0% | 19% | 7% | 25% | 47%
xlf0% | 0% | 84% | 15% | 0%
psm10% | 0% | 100% | 0% | 0%
cmake0% | 0% | 100% | 0% | 0%
props0% | 0% | 0% | 28% | 71%
targets0% | 0% | 0% | 0% | 100%
proj0% | 0% | 0% | 0% | 100%
shproj0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
psd10% | 0% | 0% | 0% | 100%
DotSettings0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/Adapter0% | 7% | 46% | 25% | 21%
eng/common0% | 21% | 25% | 23% | 29%
src/TestFramework0% | 14% | 62% | 3% | 19%
scripts0% | 0% | 49% | 29% | 21%
eng0% | 0% | 0% | 90% | 9%
eng/publishing0% | 0% | 0% | 0% | 100%
scripts/build0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
src/Package0% | 0% | 0% | 0% | 100%
scripts/toolset0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
tools.ps1
in eng/common
764 -
Assert.cs
in src/TestFramework/MSTest.Core/Assertions
724 87
TestDataConnectionSql.cs
in src/Adapter/PlatformServices.Desktop.Legacy/Data
620 24
TestDataConnectionSql.cs
in src/Adapter/PlatformServices.Desktop/Data
620 24
TestMethodInfo.cs
in src/Adapter/MSTest.CoreAdapter/Execution
555 13
post-build.yml
in eng/common/templates/post-build
529 -
PrivateObject.cs
in src/TestFramework/Extension.Desktop
504 45
TypeCache.cs
in src/Adapter/MSTest.CoreAdapter/Execution
493 22
CollectionAssert.cs
in src/TestFramework/MSTest.Core/Assertions
477 44
ReflectHelper.cs
in src/Adapter/MSTest.CoreAdapter/Helpers
420 28
AssemblyResolver.cs
in src/Adapter/PlatformServices.Desktop.Legacy
414 19
AssemblyResolver.cs
in src/Adapter/PlatformServices.Desktop
414 19
MSTestSettings.cs
in src/Adapter/MSTest.CoreAdapter
375 10
RuntimeTypeHelper.cs
in src/TestFramework/Extension.Desktop
355 7
TestExecutionManager.cs
in src/Adapter/MSTest.CoreAdapter/Execution
352 14
CommonLibrary.psm1
in eng/common/native
343 -
xlf
Resource.cs.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.de.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.es.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.fr.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.it.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.ja.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.ko.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.pl.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.pt-BR.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.ru.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.tr.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.zh-Hans.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.zh-Hant.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 -
xlf
Resource.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
342 -
DesktopTestContextImplementation.cs
in src/Adapter/PlatformServices.Desktop.Legacy/Services
318 18
DesktopTestContextImplementation.cs
in src/Adapter/PlatformServices.Desktop/Services
317 18
TestMethodRunner.cs
in src/Adapter/MSTest.CoreAdapter/Execution
313 4
ns13DeploymentUtilityBase.cs
in src/Adapter/PlatformServices.Shared/netstandard1.3/Utilities
311 14
xlf
FrameworkMessages.cs.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.de.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.es.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.fr.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.it.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.ja.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.ko.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.pl.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.pt-BR.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.ru.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.tr.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.zh-Hans.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
xlf
FrameworkMessages.zh-Hant.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 -
AssemblyEnumerator.cs
in src/Adapter/MSTest.CoreAdapter/Discovery
282 12
symbols-validation.ps1
in eng/common/post-build
278 -
Files With Most Units (Top 20)
File# lines# units
Assert.cs
in src/TestFramework/MSTest.Core/Assertions
724 87
PrivateObject.cs
in src/TestFramework/Extension.Desktop
504 45
CollectionAssert.cs
in src/TestFramework/MSTest.Core/Assertions
477 44
PrivateType.cs
in src/TestFramework/Extension.Desktop
236 32
ReflectHelper.cs
in src/Adapter/MSTest.CoreAdapter/Helpers
420 28
StringAssert.cs
in src/TestFramework/MSTest.Core/Assertions
157 25
TestDataConnectionSql.cs
in src/Adapter/PlatformServices.Desktop.Legacy/Data
620 24
TestDataConnectionSql.cs
in src/Adapter/PlatformServices.Desktop/Data
620 24
TypeCache.cs
in src/Adapter/MSTest.CoreAdapter/Execution
493 22
AssemblyResolver.cs
in src/Adapter/PlatformServices.Desktop.Legacy
414 19
AssemblyResolver.cs
in src/Adapter/PlatformServices.Desktop
414 19
DesktopTestContextImplementation.cs
in src/Adapter/PlatformServices.Desktop.Legacy/Services
318 18
DesktopTestContextImplementation.cs
in src/Adapter/PlatformServices.Desktop/Services
317 18
NetCoreTestContextImplementation.cs
in src/Adapter/PlatformServices.NetCore/Services
269 17
ns10TestContextImplementation.cs
in src/Adapter/PlatformServices.Shared/netstandard1.0/Services
193 16
TestExecutionManager.cs
in src/Adapter/MSTest.CoreAdapter/Execution
352 14
ns13DeploymentUtilityBase.cs
in src/Adapter/PlatformServices.Shared/netstandard1.3/Utilities
311 14
ns13FileUtility.cs
in src/Adapter/PlatformServices.Shared/netstandard1.3/Utilities
229 14
TestMethodInfo.cs
in src/Adapter/MSTest.CoreAdapter/Execution
555 13
AssemblyEnumerator.cs
in src/Adapter/MSTest.CoreAdapter/Discovery
282 12
Files With Long Lines (Top 20)

There are 243 files with lines longer than 120 characters. In total, there are 2503 long lines.

File# lines# units# long lines
xlf
Resource.it.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 - 58
xlf
Resource.de.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 - 53
xlf
Resource.fr.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 - 53
xlf
Resource.es.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 - 52
xlf
Resource.pl.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 - 51
xlf
Resource.pt-BR.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 - 51
xlf
Resource.ru.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 - 51
xlf
Resource.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
342 - 47
xlf
Resource.tr.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 - 45
xlf
Resource.cs.xlf
in src/Adapter/MSTest.CoreAdapter/Resources/xlf
343 - 44
xlf
FrameworkMessages.de.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 - 37
xlf
FrameworkMessages.pt-BR.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 - 37
xlf
FrameworkMessages.it.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 - 36
xlf
FrameworkMessages.fr.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 - 35
TestExecutionManager.cs
in src/Adapter/MSTest.CoreAdapter/Execution
352 14 34
execute-all-sdl-tools.ps1
in eng/common/sdl
148 - 33
xlf
FrameworkMessages.es.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 - 33
xlf
FrameworkMessages.pl.xlf
in src/TestFramework/MSTest.Core/Resources/xlf
297 - 32
Constants.cs
in src/Adapter/MSTest.CoreAdapter
78 - 31
TypeCache.cs
in src/Adapter/MSTest.CoreAdapter/Execution
493 22 31