Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richardruiter/gatsby-transformer-cucumber-report
Gatsby plugin for transforming sourced cucumber reports
https://github.com/richardruiter/gatsby-transformer-cucumber-report
bdd behavior-driven-development cucumber cucumber-json cucumber-reports gatsby gatsby-plugin gatsby-plugin-transformer gatsby-plugins gatsbyjs living-documentation livingdocs
Last synced: 11 days ago
JSON representation
Gatsby plugin for transforming sourced cucumber reports
- Host: GitHub
- URL: https://github.com/richardruiter/gatsby-transformer-cucumber-report
- Owner: richardruiter
- License: mit
- Created: 2020-02-26T05:35:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-26T06:14:35.000Z (almost 5 years ago)
- Last Synced: 2024-11-21T19:51:30.056Z (2 months ago)
- Topics: bdd, behavior-driven-development, cucumber, cucumber-json, cucumber-reports, gatsby, gatsby-plugin, gatsby-plugin-transformer, gatsby-plugins, gatsbyjs, living-documentation, livingdocs
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gatsby-transformer-cucumber-report
## Description
Gatsby plugin for transforming sourced cucumber reports
## How to install
`npm install --save gatsby-transformer-cucumber-report`
\- or -
`yarn add gatsby-transformer-cucumber-report`
## When do I use this plugin?
If you want to create living documentation using Gatsby. This plugin will transform any sources `.json` cucucumber report you have in your project and then query the contents.
## Examples of usage
```js
// In your gatsby-config.js
module.exports = {
plugins: [
`gatsby-transformer-cucumber-report`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `../my-e2e/.reports/cucumber`
}
}
]
};
```To query the data your can for example look up a specific feature using it's name:
```js
export const pageQuery = graphql`
query($feature: String!) {
cucumberReport(features: { elemMatch: { name: { eq: $feature } } }) {
features {
keyword
name
elements {
name
steps {
name
keyword
embeddings {
data
mime_type
}
}
}
}
}
}
`;
```