Skip to content

Commit

Permalink
[#425] Add support for reading Tags from Gherkin feature files
Browse files Browse the repository at this point in the history
Added "feature" to the list of supported file extensions so that
the standard Tag importer can now extract Tags from comments in
"feature" files as used by Gherkin.
  • Loading branch information
sophokles73 committed Aug 6, 2024
1 parent 7b26b0e commit c3f63c0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
20 changes: 12 additions & 8 deletions doc/user_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,10 @@ recognized file types:

Note that XML is at the moment not yet supported by the Tag Importer, because it would collide with the SpecObj Importer. Once import fallback is implemented, XML will be supported too.

**Test Specification languages**

* [Gherkin](https://cucumber.io/docs/gherkin/) (`.feature`)

#### Markdown

The main importer of OFT accepts markdown files with the extensions `.md` and `.markdown`.
Expand Down Expand Up @@ -1075,11 +1079,11 @@ The OFT command line interface returns the following exit codes:

The following editors and integrated development environments are well suited for authoring OFT documents. The list is not exhaustive, any editor with Markdown capabilities can be used.

| Editor / IDE | Syntax highl. | Preview | Outline | HTML export |
|--------------------------------------------------------|---------------|---------|---------|-------------|
| [Gedit](https://wiki.gnome.org/Apps/Gedit) | y | | | |
| [Eclipse](https://eclipse.org) with WikiText plug-in | y | y | y | y |
| [Eclipse](https://eclipse.org) with GMF plug-in | | y | | |
| [IntelliJ](https://www.jetbrains.com/idea/) | y | y | y | y |
| [Vim](https://www.vim.org/) | y | | | |
| [Visual Studio Code](https://code.visualstudio.com/) | y | y | y | |
| Editor / IDE | Syntax highl. | Preview | Outline | HTML export |
| ---------------------------------------------------- | ------------- | ------- | ------- | ----------- |
| [Gedit](https://wiki.gnome.org/Apps/Gedit) | y | | | |
| [Eclipse](https://eclipse.org) with WikiText plug-in | y | y | y | y |
| [Eclipse](https://eclipse.org) with GMF plug-in | | y | | |
| [IntelliJ](https://www.jetbrains.com/idea/) | y | y | y | y |
| [Vim](https://www.vim.org/) | y | | | |
| [Visual Studio Code](https://code.visualstudio.com/) | y | y | y | |
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class TagImporterFactory extends ImporterFactory
"c", "C", "cc", "cpp", "c++", "h", "H", "h++", "hh", "hpp", // C/C++
"c#", "cs", // C#
"cfg", "conf", "ini", // configuration files
"feature", // Gherkin feature files
"go", // Go
"groovy", // Groovy
"json", "htm", "html", "xhtml", "yaml", "yml", // markup languages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected List<String> getSupportedFilenames()
{
return asList("file.java", "FILE.java", "file.md.java", "foo.bash", "foo.bar.bash",
"foo.bat", "foo.java", "foo.c", "foo.C", "foo.c++", "foo.c#", "foo.cc", "foo.cfg",
"foo.conf", "foo.cpp", "foo.cs", "foo.groovy", "foo.h", "foo.H", "foo.hh", "foo.h++",
"foo.conf", "foo.cpp", "foo.cs", "foo.feature", "foo.groovy", "foo.h", "foo.H", "foo.hh", "foo.h++",
"foo.htm", "foo.html", "foo.ini", "foo.js", "foo.ts", "foo.json", "foo.lua", "foo.m",
"foo.mm", "foo.php", "foo.pl", "foo.pls", "foo.pm", "foo.py", "foo.sql", "foo.r",
"foo.rs", "foo.sh", "foo.yaml", "foo.yml", "foo.xhtml", "foo.zsh", "foo.clj", "foo.kt", "foo.scala",
Expand Down

0 comments on commit c3f63c0

Please sign in to comment.