How you can leverage convention tests to build good codebases
ConventionalWisdomAndrew Best
View Slide
PageGood codebasesare?› Easy to reasonabout› Express clearopinions› Have lowcognitiveoverhead› Inspire confidence› Are self enforcing› Are malleable/ Copyright ©2014 by Readify Pty Ltd2
PageHow?› Write good code! › Leverage tools that help us validate our codebases› The .NET type system› Mono.Cecil› Combine these with tools that run these validations atbuild time› Unit testing frameworks› CI/ Copyright ©2014 by Readify Pty Ltd3
PageConventional› A .NET library for inspecting types, assemblies,solutions and databases, available on nuget› Provides a large set of conventions that can be appliedout of the box, or you can create your own› Fits in with your testing framework of choice› Gives human-readable output whenever conventionsare broken, so we can go and fix our code!/ Copyright ©2014 by Readify Pty Ltd4
PageTo the code!/ Copyright ©2014 by Readify Pty Ltd5
Thankyou!@_AndrewB[email protected]