.feature Gherkin document
Text & source code
| MIME type | text/x-gherkin |
|---|---|
| Description | Gherkin document |
| Category | Text & source code |
| Based on | text/plain |
Frequently asked questions
What is a .feature file?
A .feature file is a “Gherkin document” (MIME type text/x-gherkin).
How do I open a .feature file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .feature file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.feature shows the guessed type.
Which format is .feature based on?
Technically a .feature file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .feature?
The MIME type is text/x-gherkin. In the Apache web server: AddType text/x-gherkin .feature; in nginx: types { text/x-gherkin feature; }.