Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Unit Testing in Umbraco

82 views

Published on

Unit testing is a great way to help you improve your code and your team. It allows you to make changes or refactor your code to improve it with some confidence that your changes did not break a project. I am sure many of us realize the benefits of unit testing but find it difficult to do when working with a CMS or platform that you don't have full control over. This is the situation we will be discussing and I will show you how I have added unit tests to my customizations that are built on top of Umbraco.

Published in: Software
  • Be the first to comment

  • Be the first to like this

Unit Testing in Umbraco

  1. 1. @paulmgower unit testing in _______________
  2. 2. @paulmgower unit testing goal isolate each part prove part is correct https://en.wikipedia.org/wiki/Unit_testing
  3. 3. @paulmgower unit testing benefits find bugs early http://www.stevemcconnell.com/articles/art04.htmprovides documentation
  4. 4. @paulmgower more info on unit testing http://bit.ly/hq-unit-tests http://bit.ly/robust-unit-tests
  5. 5. @paulmgower
  6. 6. @paulmgower Some image showing pain
  7. 7. @paulmgower Demo
  8. 8. @paulmgower
  9. 9. @paulmgower
  10. 10. @paulmgower
  11. 11. @paulmgower Demo
  12. 12. @paulmgower dependencies NUnit Moq NUnit Test Adapter Umbraco.Tests.dll
  13. 13. @paulmgower steps to unit test
  14. 14. @paulmgower steps to unit test test project
  15. 15. @paulmgower steps to unit test test project Umbraco.Tests.dll
  16. 16. @paulmgower steps to unit test test project Umbraco.Tests.dll http://bit.ly/U4-8528
  17. 17. @paulmgower steps to unit test test project Umbraco.Tests.dll first test http://bit.ly/U4-8528
  18. 18. @paulmgower more info sam sussman’s article lars-erik’s article http://bit.ly/umb-ut-sam http://bit.ly/umb-ut-lars
  19. 19. @paulmgower http://bit.ly/uwf2017-gh-ut-umb GitHub Repo and Slides
  20. 20. @paulmgower paul gower CTO of Aristotle Labs @paulmgower | aristotlelabs.com

×