Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Cytorus is a cypress file preprocessor which allows you to run cucumon(gherkin like) tests
Cypress Preprocessor
Cytorus is cucumon implementation of Cypress. Cucumon is nothing but gherkin like feature file with a few extra features.
Threshold based approach to fail a build. This feature is very helpful for CI/CD. Your build can be green with flaky or timebound tests. You can keep the build green for particular features while other failing tests are still being fixed.
Parallel run: Cytorus analyze the number of parallel processes it can run to run the tests in parallel. However, you can control the limit or parallel features anytime.
Custom Analyzer: You can wrte your own logic to build reports or to analyze final result.
Cucumon Syntax support: Cucumon instruction help to reduce code to convert data table and doc strings in other format.
Given the following query params
#> {}
| from | XML |
| to | JSON |
Step definition will get following converted object;
{
from: "XML",
to: "JSON"
}
{}
, []
, and [{}]
are currently supported for data table. json
are supported for doc string.
Cytorus allow you to run tests by their position in partifular feature file. It can help you when you have some automation logic to identify tests to run without adding tags or doing any change in the repository.
Debugging: Cytorus adds informative message with each step to display in command pannel or console logs on Cypress dashboard. You can also run cytorus with debug option DEBUG=cytorus npx cytorus run
Minor features
@skip
.@only
then other tags will be skipped.Many features are on the way
Install
$ mkdir project; cd project
$ npm init -y
#install cypress dependencies if you have not installed them yet
$ sudo apt-get install xvfb libgtk-3-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libgconf2-4
#install necessary projects
$ npm install cypress cytorus cytorus-report
Create the following folder structure
project
|__ cypress
|__ integration
|__ features
|__ steps
|__ other
|__ fixtures
|__ plugins
|__ reports
|__ support
|__ cypress.json
|__ cytorus.config.js
|__ package.json
You can check E2E folder for more detail.
Cytorus is interested in only cypress/integration/features/
, cypress/integration/steps/
, and cytorus.config.js
. Rest config is as per cypress need.
Following configuration is required in cypress/plugins/index.js
const cytorus = require('cytorus');
module.exports = (on, config) => {
cytorus(on, config);
}
Detail instructions can be found in docs.
FAQs
Gherkin syntaxed feature file test runner using Cypress. Run tests for a particular story, route, or by their position. Define your own test strategy & reports.
The npm package cytorus receives a total of 55 weekly downloads. As such, cytorus popularity was classified as not popular.
We found that cytorus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.