# Generating application code from tests with AI

DevFeed: [Generating application code from tests with AI](<https://devfeed.tech/articles/generating-application-code-from-tests-with-ai-39075.md>)

Original publisher: [Read original article](<https://blog.devdetails.com/p/generating-application-code-from>)

Author: Mike

Published: 2023-06-14T03:39:00Z

Content type: tutorial

Language: en

Sources: [Dev Details](<https://devfeed.tech/sources/dev-details.md>)

Topics: [Development](<https://devfeed.tech/topics/development.md>), [Code](<https://devfeed.tech/topics/code.md>), [ChatGPT](<https://devfeed.tech/topics/chatgpt.md>), [PyCharm](<https://devfeed.tech/topics/pycharm.md>), [Poetry](<https://devfeed.tech/topics/poetry.md>), [plantuml](<https://devfeed.tech/topics/plantuml.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [and-best-practices](<https://devfeed.tech/tags/and-best-practices.md>), [chatgpt](<https://devfeed.tech/tags/chatgpt.md>), [code](<https://devfeed.tech/tags/code.md>), [poetry](<https://devfeed.tech/tags/poetry.md>), [practical](<https://devfeed.tech/tags/practical.md>), [pycharm](<https://devfeed.tech/tags/pycharm.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

Part 5 of a series demonstrates generating application code for a URL shortening service from existing tests and design documents using ChatGPT and the CodeGPT plugin for PyCharm. The generated code was close to correct but required corrections and refactoring.

## Source excerpt

Part 5 of a practical example of using AI for coding