Skip to content

A plugin designed for generating product code based on tests written for it.

Notifications You must be signed in to change notification settings

SunnyDayDev/fusion-tdd-plugin

Repository files navigation

Build status Coverage status Release status

Readme en Readme ru

What is it

A plugin designed for generating product code based on tests written for it. It is anticipated to become an indispensable tool when writing code in TDD/BDD styles.

Project status

The plugin is in the early stages of development. It is not recommended to use it for solving real-world problems yet; instead, try it on simple demo projects and suggest improvements. Currently, it is compatible with Kotlin projects only.

How to use

The easiest way to try the plugin is to clone the project and run ./gradlew runIde in the project's root folder. Alternatively, you can execute ./gradlew buildPlugin and install the resulting plugin into an existing version of IntelliJ by going to Settings -> Pluggins -> Install Plugin from disk... and specifying the path to the created plugin at build/distributions/FusionTDDPlugin-*.zip.

But first of all you need to get an authorization token from HuggingFace.

Enter the received token in the plugin settings window. You also need to specify the project package; only the classes of this package will be scanned to collect the generation context.

Token and project package placed in text fields

Further, create a project in the IDE, create a Kotlin class, a target function with an empty body, write tests for it and start generation.

Animated example of usage

Enjoy and suggest improvements!

About

A plugin designed for generating product code based on tests written for it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages