Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tools/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
``<feature>:<section>:<scenario>``. 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``.
File renamed without changes.
4 changes: 2 additions & 2 deletions tools/gherkinize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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)

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/test_survey.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down
Loading