Software Testing Assistance with GitHub Copilot AI

Software Testing Assistance with GitHub Copilot AI

1h 16mIntermediate2024-08-23

Authors

Gary Kovar

Gary Kovar

Senior Back-End Developer and Software Engineer

Course details

Discover how to leverage AI, specifically GitHub Copilot, to enhance automated testing in your software development process. Instructor Gary Kovar demonstrates how to write, refactor, and generate tests efficiently, ensuring code quality and stability. Gary starts by exploring the capabilities of Copilot, the principles of automated testing, and how AI can significantly bolster your test coverage and code quality. Learn to configure a test suite, identify testable code, and generate meaningful tests with ease. Practical sessions on refactoring with tests ensure you add a layer of safety to your development process. Upon completing this course, you’ll be ready to use GitHub Copilot to generate automated tests from existing code and create new code after writing tests.

Learning objectives
Learn to combine your specific framework knowledge with automated test generation to create appropriate tests.
Describe how and why to use a tool like GitHub Copilot for automated testing.
Develop your understanding of how to write testable code.

Skills covered

Github CopilotSoftware TestingGitHubGenerative AIArtificial Intelligence FoundationsArtificial Intelligence (AI)Software DevelopmentOne-Off

Concepts

Introduction

  • Software testing assistance with GitHub Copilot AI
  • What you should know
  • Using the exercise files

Overview

  • What is GitHub Copilot
  • Copilot for code completion
  • Chatting with Copilot
  • Automated testing explained
  • Configuring a test suite
  • AI and automated testing

Adding Tests to Existing Code with Copilot

  • Identifying testable code
  • Generate your first tests
  • Refactor with tests
  • Use Copilot slash commands

Use Copilot to Generate Code from Tests

  • Write your tests to document business logic
  • Generate code from tests
  • Update functionality by writing more tests

Real-World Benefits

  • Code quality
  • Running tests in CI CD
  • Limiting risk by limiting exposure

Conclusion

  • Next steps
40,000 Toman