diff --git a/tools/README.rst b/tools/README.rst index a027ef4..f603b3a 100644 --- a/tools/README.rst +++ b/tools/README.rst @@ -58,12 +58,12 @@ instantiate the actual CEL types in ``src/celpy/celtypes.py`` — this code is u the Gherkin clauses. Finally, the classes representing features, sections, and scenarios are rendered to Gherkin tests -using the ``gherkin.feature.jinja`` template. +using the ``gherkinize.feature`` template. Tests with unimplemented features (notably, enums) generate a warning but do not result in -scenarios. Tests which do not currently pass are listed in ``wip.txt`` in the format -``:
:``. Presence in this file results in a ``@wip`` tag being added to -the scenario. In general, it's expected that scenarios will be removed from this list over time -and once passing, scenarios should never be added back to this file. +scenarios. Tests which do not currently pass are listed in ``tags.toml``. Presence in this file +results in a ``@wip`` tag being added to the scenario. In general, it's expected that scenarios +will be removed from this list over time and once passing, scenarios should never be added back to +this file. Finally, the complete, generated ``.feature`` files are all tagged with ``@conformance``. diff --git a/tools/gherkin.feature.jinja b/tools/gherkinize.feature similarity index 100% rename from tools/gherkin.feature.jinja rename to tools/gherkinize.feature diff --git a/tools/gherkinize.py b/tools/gherkinize.py index 0364713..f0f7013 100644 --- a/tools/gherkinize.py +++ b/tools/gherkinize.py @@ -148,7 +148,7 @@ loader=FileSystemLoader(path.dirname(__file__)), trim_blocks=True, ) -template = env.get_template("gherkin.feature.jinja") +template = env.get_template("gherkinize.feature") logger = logging.getLogger("gherkinize") pool = descriptor_pool.Default() @@ -1134,7 +1134,7 @@ def get_options(argv: list[str] = sys.argv[1:]) -> argparse.Namespace: logging.basicConfig(level=logging.INFO) logging.getLogger().setLevel(options.log_level) - config = Config(f"{path.dirname(__file__)}/wip.toml") + config = Config(f"{path.dirname(__file__)}/tags.toml") feature = Feature.from_text_proto(config, options.source) feature.write_to_file(options.output) diff --git a/tools/wip.toml b/tools/tags.toml similarity index 100% rename from tools/wip.toml rename to tools/tags.toml diff --git a/tools/test_survey.ipynb b/tools/test_survey.ipynb index 924f027..839788c 100644 --- a/tools/test_survey.ipynb +++ b/tools/test_survey.ipynb @@ -59,7 +59,7 @@ "print(logging.getLogger().getChildren())\n", "\n", "\n", - "config_path = Path.cwd() / \"wip.toml\"\n", + "config_path = Path.cwd() / \"tags.toml\"\n", "config = gherkinize.Config(config_path)\n", "# config.features" ]