Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Codecademy

Unit Testing with Generative AI Case Study

via Codecademy

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Use ChatGPT to help create a unit test for Python code. ChatGPT can generate unit tests for all of the functions of a Python class.
In this case study you will develop your skills in using generative AI to assist you in writing unit tests for Python code. We will provide you with a sample Python class and guide you in generating a proper unit test. You will use ChatGPT to generate a test class, test functions, and a setup function to see how generative AI can improve your coding!

* Create effective prompts that configure ChatGPT to help in creating a unit test.

* Use ChatGPT to create a Python test class that will be used to test a Python class.

* Use ChatGPT to create test functions that will test the member functions of a Python class.

* Use ChatGPT to create a setup function.

Syllabus

  • Unit Testing with Generative AI Case Study: Learn how to use ChatGPT to create a unit test
    • Informational: Welcome to Unit Testing with Generative AI
    • KanbanProject: Unit Testing with Generative AI
    • Informational: Next Steps

Taught by

Hisham Touma

Reviews

4.6 rating at Codecademy based on 9 ratings

Start your review of Unit Testing with Generative AI Case Study

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.