14 Maintaining your code

This chapter covers

  • Making changes to older functions without breaking existing automations
  • Using automated testing to verify that code changes do not break existing functionality
  • Automating unit and integration tests with GitHub workflows

Throughout this book, I have stressed the importance of building code that you can easily maintain and share. You have seen how to accomplish this through the use of functions and modules. Then, in chapter 12, you saw how to use GitHub to store your code and control the changes to it through pull requests. And, in chapter 13, you saw how to build unit and integration tests to ensure that your code functions as expected. Now, in this chapter, you will see how to bring this all together. ...

Get Practical Automation with PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.