irections emea 2023 lyon
1-3 November 2023

Directions EMEA 2023

Directions EMEA is the "Go To" place where Dynamics partners share the future. It's the preferred global community for collaborating and learning from Microsoft, MVPs, ISVs, VARs and their peers. The focus is on helping the SMB market unlock its full potential in technical, business development and strategy with ERP, CRM, and Cloud solutions, including the Microsoft Power Platform, Microsoft Dynamics 365 Business Central, and Azure.

01-11-2023

Mythbusting code coverage (while writing better code)

14:00 - 14:45 Forum 3 Back to event schedule

Code coverage is one of rare useful metrics that can measure your code. Yet, most of us get it completely wrong.

Everyone knows that aiming for 100% coverage is crazy. So teams settle for some arbitrary figure they deem to be good enough. Most of teams aim for 80%, that's kind of an industry average.

Excuse my party-breaking, but why? Why is it okay to have 20% of code untested? How do you decide which 20% not to cover? More often than not, it's the most complicated 20%, and most impactful 20%.

For the better part of it, the 80% coverage is just a mantra. For some team, some time in the past, this figure made a lot of sense. But then it became one of those "best practices" that everyone follows, but nobody understands why anymore. The reason why it's okay not to test 20% of your code is not because it's your team's benchmark, but because that 20% of your code doesn't actually need testing.

This session shows you how to structure your code in such a way that there is a very clear split between code that needs testing, and the code that you can safely omit from your unit tests. The end result is a much more robust, more testable code, and a good test coverage that is not just some meaningless number your team settled for.

Speakers:

Vjekoslav Babic

Solutions Architect | MVP

Vjekoslav Babić, or just Vjeko as he is known in the community, is a Business Central architect, developer, trainer, author and blogger. With more than two decades of experience in IT, he worked with vast range of technologies, but his passion has always been anything that lingers on the outer edges of BC.

Deep down, Vjeko is an incurable hacker who took a long time to realize that he really loves writing code, plain and simple. He immensely enjoys breaking things apart to see how they work. As a frequent speaker at conferences, in his demos, and on his blog, he is always pushing the boundaries of what's possible, connecting the world of Business Central with just about anything that can be plugged into it through some obscure loophole or undocumented interface.

Since spring 2010, Vjeko has been awarded the Most Valuable Professional (MVP) award for Microsoft Dynamics NAV. You can meet him at his blog "Vjeko.com - ideas in the cloud".