Skip to content

Commit

Permalink
Merge pull request #321 from Cloud-Code-AI/303-update-cli-to-include-…
Browse files Browse the repository at this point in the history
…unittest-generation

feat: added unit test to cli
  • Loading branch information
sauravpanda authored Jul 15, 2024
2 parents 4e7bb6c + c052be1 commit c0673c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions cli/kaizen_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
import json
from kaizen.generator.ui import UITestGenerator
from kaizen.generator.unit_test import UnitTestGenerator

CONFIG_FILE = os.path.expanduser("~/.myapp_config.json")

Expand Down Expand Up @@ -84,6 +85,14 @@ def ui_tests(url):
UITestGenerator().generate_ui_tests(url)


@cli.command()
@click.argument("file_path", required=True)
@click.argument("output_folder", default=None)
def unit_test(file_path, output_folder):
"""Run unit test generation"""
UnitTestGenerator().generate_tests(file_path, output_path=output_folder)


@cli.group()
def reviewer():
"""reviewer command group"""
Expand Down
2 changes: 1 addition & 1 deletion cli/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kaizen-cli"
version = "0.1.3"
version = "0.1.4"
description = ""
authors = ["Saurav Panda <sgp65@cornell.edu>"]
readme = "README.md"
Expand Down

0 comments on commit c0673c5

Please sign in to comment.