The Nx Plugin for Cucumber contains executors and generators allowing your workspace to use the powerful Cucumber integration testing capabilities.
Generates a Cucumber project that doesn't have a dependency for any assertion library. This provides flexibility for developers choose whatever assertion library they want to use. This allows for frictionless integration with end-to-end testing libraries such as Playwright.
Before adding any new feature or a fix, make sure to open an issue first :)
- Make sure to use the expected node/npm versions
node -v # v14.20.0
npm -v # 6.14.17
If you have the wrong versions, I suggest using nvm or volta for node version management.
- Clone the project and install dependencies
git clone https://github.com/bitovi/nx-cucumber-plugin.git
npm install
- Create a new branch
git checkout -b feature/some-feature
- Add tests and make sure tests pass
npm run test # both jest and e2e tests
or
npm run test:demo # only demo
npm run test:lib # only ngx-feature-flag-router lib
You can also run unit and e2e tests separately
npm run jest # only jest tests
npm run e2e # only e2e tests
- commit -> push -> create a pull request 🚀
npm run format # Use Nx formatter to format project
npm run build # Create a production build of Plugin located in dist directory. Used for publishing
npm run jest # Executes Jest unit tests for executers and generators
npm run e2e # Executes Jest e2e tests for Cucumber Nx plugin by creating a temporary Nx workspace
npm run test # Executes Jest unit and e2e tests for Cucumber Nx plugin
This project was generated using Nx.
🔎 Smart, Fast and Extensible Build System
Create an Nx Plugin - Steps to create an Nx plugin, write generators, executors, testing, and adding assets.
Publish an Nx Plugin - Steps to build, publish, and add to Nx Plugin listings.
Nx Plugin Directory - collection of published Nx Plugins.