GithubHelp home page GithubHelp logo

naturalintelligence / cytorus Goto Github PK

View Code? Open in Web Editor NEW
20.0 4.0 7.0 1.75 MB

Cypress based Gherkin tests runner where you can run tests for a single story or route

Home Page: https://amitkumargupta.work/cytorus

License: MIT License

JavaScript 74.15% Gherkin 25.25% Shell 0.08% Dockerfile 0.52%
gherkin cucumber dashboard qaautomation cypress testing gherkin-parser end-to-end-testing bdd

cytorus's People

Contributors

actus-wirtenberger avatar amitguptagwl avatar colinwirt avatar koichirok avatar uzaeirazhar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cytorus's Issues

error when running on Windows

Describe the Bug

On Windows, running npx cytorus run fails with the error message Error: Can't walk dependency graph: Cannot find module ... from ...

Steps to Reproduce the Bug or Issue

  • Prerequisite: Windows OS
  • Steps to reproduce the issue
    git checkout https://github.com/NaturalIntelligence/cytorus-boilerplate.git
    npm i
    npx cytorus run
    

Expected behavior

Cytorus runs without failure.

Actual behavior

Cytorus fails and prints the error message Error: Can't walk dependency graph: Cannot find module ... from ...

Remove dependency from cucumber-expressions

We want to remove dependency from cucumber-expressions package so that any change in the library doesn't impact this package. And it can be achieved using regular expression.

Hyphenated tags are not handled correctly.

Cytorus 0.2.9 does not handle tags containing hyphens correctly.

I think this is because bexp treats hyphens as operators. However, the use of hyphens in tags is expected in Cucumebr, so I hope Cytorus will support tags with hyphens.

For example, for the following feature file, I would expect cytorus to run first scenario when --tags @foo-bar is specified.

Feature: test hyphenated tag expressions

@foo-bar
Scenario: should run on `@all` and `@foo-bar` expressions
    Given I start here

@only
Scenario: should run when tag expression is not given
    Given I start here

However, the result is that the second scenario is executed, as shown below:

$ npx cytorus run --tags "@foo-bar" --spec cypress/integration/features/hyphenated-tags.feature
(snip)
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
                                                                                                    
  Running:  cytorus-cache/group0.cytorus                                                    (1 of 1)





  Feature: test hyphenated tag expressions

    - Scenario: should run on `@all` and `@foo-bar` expressions

    โœ“ Scenario: should run when tag expression is not given (17ms)

    - Updating test results




  1 passing (246ms)

  2 pending

(snip)

Load test data from external resource

Discussed in #6

Originally posted by amitguptagwl March 8, 2022
Would it be good to provide a feature to load test data from external resources?

Eg

Scenario: GSM list
    #> source: resources/investedCompanies.txt
    Given the list of invested companies
    Then the list of companies in GSM list are displayed as per their level

Alternate

Scenario: GSM list
    Given the list of invested companies
    """
    resources/investedCompanies.txt
    """
    Then the list of companies in GSM list are displayed as per their level

In case of Examples, I couldn't find any right example where the same scenario should rerun for different multiple inputs.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.