diff --git a/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/BehaveBddTestMojo.java b/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/BehaveBddTestMojo.java index 9776238..f4caedb 100644 --- a/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/BehaveBddTestMojo.java +++ b/habushu-maven-plugin/src/main/java/org/technologybrewery/habushu/BehaveBddTestMojo.java @@ -30,7 +30,7 @@ public class BehaveBddTestMojo extends AbstractHabushuMojo { protected static final String BEHAVE_PACKAGE = "behave"; - protected static final String BEHAVE_CUCUMBER_FORMATTER = "behave-cucumber-formatter"; + protected static final String BEHAVE_CUCUMBER_FORMATTER = "kappa-maki"; /** * Options that should be passed to the behave command. NOTE: If this @@ -114,7 +114,7 @@ public void doExecute() throws MojoExecutionException, MojoFailureException { if (outputCucumberStyleTestReports) { poetryHelper.installDevelopmentDependency(BEHAVE_CUCUMBER_FORMATTER); - executeBehaveTestArgs.add("--format=behave_cucumber_formatter:PrettyCucumberJSONFormatter"); + executeBehaveTestArgs.add("--format=kappa_maki.kappa_maki_formatter:PrettyCucumberJSONFormatter"); executeBehaveTestArgs.add("--outfile=target/cucumber-reports/cucumber.json"); executeBehaveTestArgs.add("--format=progress2"); } diff --git a/habushu-mixology-consumer/pyproject.toml b/habushu-mixology-consumer/pyproject.toml index cd4e360..8229197 100644 --- a/habushu-mixology-consumer/pyproject.toml +++ b/habushu-mixology-consumer/pyproject.toml @@ -12,11 +12,11 @@ python = "^3.11" [tool.poetry.group.dev.dependencies] -behave-cucumber-formatter = ">=1.0.1" +kappa-maki = ">=1.0.0" [tool.poetry.dev-dependencies] black = ">=24.3.0" -behave = "^1.2.6" +behave = ">=1.2.6" [build-system] requires = ["poetry-core>=1.6.0"] diff --git a/habushu-mixology-consumer/tests/features/generate-report-with-manual-tests.feature b/habushu-mixology-consumer/tests/features/generate-report-with-manual-tests.feature new file mode 100644 index 0000000..85707b0 --- /dev/null +++ b/habushu-mixology-consumer/tests/features/generate-report-with-manual-tests.feature @@ -0,0 +1,9 @@ +@manual +Feature: Given a Python module with at least one automated test and one or more manual tests, I should be able to view + an HTML report of the Behave tests + + Scenario: Generate reports with manual tests present + Given a Python module with at least one automated test and at least one manual test + When I build the python module + Then my build should succeed + And I should be able to see a HTML report of the tests in the target directory \ No newline at end of file diff --git a/habushu-mixology-consumer/tests/features/steps/generate-report-with-manual-tests.py b/habushu-mixology-consumer/tests/features/steps/generate-report-with-manual-tests.py new file mode 100644 index 0000000..488514e --- /dev/null +++ b/habushu-mixology-consumer/tests/features/steps/generate-report-with-manual-tests.py @@ -0,0 +1,21 @@ +from behave import * + + +@given("a Python module with at least one automated test and at least one manual test") +def step_impl(context): + return + + +@when("I build the python module") +def step_impl(context): + return + + +@then("my build should succeed") +def step_impl(context): + return + + +@then("I should be able to see a HTML report of the tests in the target directory") +def step_impl(context): + return diff --git a/habushu-mixology/pyproject.toml b/habushu-mixology/pyproject.toml index dfb3384..9d178e1 100644 --- a/habushu-mixology/pyproject.toml +++ b/habushu-mixology/pyproject.toml @@ -13,12 +13,12 @@ uvicorn = {version = "^0.18.0", extras = ["standard"]} [tool.poetry.dev-dependencies] black = ">=24.3.0" -behave = "^1.2.6" +behave = ">=1.2.6" grpcio-tools = "^1.48.0" python-dotenv = "^0.20.0" [tool.poetry.group.dev.dependencies] -behave-cucumber-formatter = ">=1.0.1" +kappa-maki = ">=1.0.0" [build-system] requires = ["poetry-core>=1.6.0"]