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.

Alex Yates - Testing SQL Server with tSQLt and VSTS

251 views

Published on

So you’ve put your databases in source control and you’re figuring out how to deploy them with VSTS or Octopus Deploy etc. That’s great, but DevOps is about more than just the continuous delivery of software updates. If your new code is broken all you’ve managed to do is ship bugs to your users more quickly than before.

When writing applications we use test frameworks like xUnit or JUnit to create unit tests that can be run on a developers machine or as part of a CI process. That helps us to catch regressions. We should be applying the same diligence to our stored procedures and functions to help us to spot when we accidentally break the database too.

In this session I’ll use tSQLt to create a suite of automated tests and I’ll run them as part of a VSTS build. I’ll share all my scripts on GitHub so you can recreate my demo afterwards on your own machine.

Published in: Software
  • D0WNL0AD FULL ▶ ▶ ▶ ▶ http://1url.pw/ws3iN ◀ ◀ ◀ ◀
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Alex Yates - Testing SQL Server with tSQLt and VSTS

  1. 1. @_AlexYates_ #WinOps AlexYates Testing SQL Server with tSQLt andVSTS
  2. 2. @_AlexYates_ #WinOps AlexYates Testing SQL Server with tSQLt andVSTS
  3. 3. @_AlexYates_ #WinOps AlexYates Testing SQL Server with tSQLt andVSTS
  4. 4. @_AlexYates_ #WinOps Testing SQL Server with tSQLt andVSTS AlexYates
  5. 5. @_AlexYates_ #WinOps DLM Consultant workingwithdevs.com alex.yates@dlmconsultants.com AlexYates @_AlexYates_
  6. 6. @_AlexYates_ #WinOps
  7. 7. @_AlexYates_ #WinOps @_AlexYates_ #WinOps
  8. 8. @_AlexYates_ #WinOps
  9. 9. @_AlexYates_ #WinOps @_AlexYates_ #WinOps
  10. 10. @_AlexYates_ #WinOps
  11. 11. @_AlexYates_ #WinOps @_AlexYates_ #WinOps
  12. 12. @_AlexYates_ #WinOps
  13. 13. @_AlexYates_ #WinOps @_AlexYates_ #WinOps Steven Wright http://zogamorph.blogspot.co.uk/2014/07/integrating-tsqlt-with-sql-server-data.html
  14. 14. @_AlexYates_ #WinOps @_AlexYates_ #WinOps Steven Wright http://zogamorph.blogspot.co.uk/2014/07/integrating-tsqlt-with-sql-server-data.html
  15. 15. @_AlexYates_ #WinOps
  16. 16. @_AlexYates_ #WinOps Write tests Automate tests tSQLt.org @_AlexYates_ #WinOps
  17. 17. @_AlexYates_ #WinOps @_AlexYates_ #WinOps
  18. 18. @_AlexYates_ #WinOps @_AlexYates_ #WinOps
  19. 19. @_AlexYates_ #WinOps Questions? alex.yates@dlmconsultants.com
  20. 20. @_AlexYates_ #WinOps Image sources Author Source Information Chiltepinster Wikimedia Commons Mocking Bird Argument.jpg – Wikimedia Commons. This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. Source on Wikimedia Commons: “Own work” Bit Boy Flickr The elephant in the room – Flickr. This file is licensed under the Creative Commons Attribution 2.0 Generic license. Nils Rinaldi Flickr Hippo fight 2/3 – Flickr. This file is licensed under the Creative Commons Attribution 2.0 Generic license. My own collection Taken by/property of Alex Yates Kitten, “There’s more than one way to skin a cat!” Memegenerator.net Memegenerator.net I don’t always edit database. Content designed to be shared and delivered with credit to memegenerator.net. Ctrl.Alt.Design ctrla.lt Social Media share icons

×