Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>UT GenerationNew to Visual Studio Code? Get it now.
UT Generation

UT Generation

Pengfei Gao

|
76 installs
| (1) | Free
UT Generation By GPT
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

utgeneration README

Features

This is a tool targeting for generating Unit Test for TypeScript React Component automatically

Requirements

Please set Azure API Key for GPT.

Extension Settings

This extension contributes the following settings:

  • myExtension.IsUseGpt4: If use GPT-4
  • myExtension.AzureApiKey_Gpt35: Azure API Key for GPT-3.5
  • myExtension.AzureApiKey_Gpt4: Azure API Key for GPT-4
  • myExtension.Instructions: Instructions for GPT to help generate UT
  • myExtension.SampleFile: You can provide a sampleFile path to help GPT generate sample-style UT

Release Notes

1.0.0

Initial release

1.1.1

-New feature: automatically crawl dependencies

1.1.2

  • Bug fix: crawl dependencies from multiple lines
  • Bug fix: avoid crawling unneccessary dependencies
  • Optimize: optimize logic of reading dependencies which are not exist

1.1.3

-Add log and License

1.2.1

-New feature: run UT coverage

1.2.2

-Bug fix: UT coverage contains ts/tsx

1.2.3

-Bug fix: dependencies remove utils/icons

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft