Skip to content

Commit 81fe387

Browse files
NbluffCleanFixDev
andauthored
Rename gherkinize template and tag config files (#176)
* Rename gherkinize template and tag config files to `gherkinize.feature` and `tags.toml`. --------- Co-authored-by: CleanFixDev <219162456+Nbluff@users.noreply.github.com>
1 parent 4b51c6d commit 81fe387

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎tools/README.rst‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ instantiate the actual CEL types in ``src/celpy/celtypes.py`` — this code is u
5858
the Gherkin clauses.
5959

6060
Finally, the classes representing features, sections, and scenarios are rendered to Gherkin tests
61-
using the ``gherkin.feature.jinja`` template.
61+
using the ``gherkinize.feature`` template.
6262

6363
Tests with unimplemented features (notably, enums) generate a warning but do not result in
64-
scenarios. Tests which do not currently pass are listed in ``wip.txt`` in the format
65-
``<feature>:<section>:<scenario>``. Presence in this file results in a ``@wip`` tag being added to
66-
the scenario. In general, it's expected that scenarios will be removed from this list over time
67-
and once passing, scenarios should never be added back to this file.
64+
scenarios. Tests which do not currently pass are listed in ``tags.toml``. Presence in this file
65+
results in a ``@wip`` tag being added to the scenario. In general, it's expected that scenarios
66+
will be removed from this list over time and once passing, scenarios should never be added back to
67+
this file.
6868

6969
Finally, the complete, generated ``.feature`` files are all tagged with ``@conformance``.

‎tools/gherkinize.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
loader=FileSystemLoader(path.dirname(__file__)),
149149
trim_blocks=True,
150150
)
151-
template = env.get_template("gherkin.feature.jinja")
151+
template = env.get_template("gherkinize.feature")
152152
logger = logging.getLogger("gherkinize")
153153
pool = descriptor_pool.Default()
154154

@@ -1134,7 +1134,7 @@ def get_options(argv: list[str] = sys.argv[1:]) -> argparse.Namespace:
11341134
logging.basicConfig(level=logging.INFO)
11351135
logging.getLogger().setLevel(options.log_level)
11361136

1137-
config = Config(f"{path.dirname(__file__)}/wip.toml")
1137+
config = Config(f"{path.dirname(__file__)}/tags.toml")
11381138
feature = Feature.from_text_proto(config, options.source)
11391139
feature.write_to_file(options.output)
11401140

File renamed without changes.

‎tools/test_survey.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"print(logging.getLogger().getChildren())\n",
6060
"\n",
6161
"\n",
62-
"config_path = Path.cwd() / \"wip.toml\"\n",
62+
"config_path = Path.cwd() / \"tags.toml\"\n",
6363
"config = gherkinize.Config(config_path)\n",
6464
"# config.features"
6565
]

0 commit comments

Comments
 (0)