Git Product home page Git Product logo

Comments (10)

esparkman avatar esparkman commented on July 20, 2024

@trevordjones how did you get cucumber tests working?

from atom-ruby-test.

trevordjones avatar trevordjones commented on July 20, 2024

Hopefully this is just temporary - I ended up having to adjust my ruby-test settings so that my Rspec commands are mapped to Cucumber. Obviously it's inconvenient - if I wanted to then run Rspec tests, I have to switch it back over. I haven't heard of any progress on the issue yet.

from atom-ruby-test.

JonCrawford avatar JonCrawford commented on July 20, 2024

👍 Same issue here.

from atom-ruby-test.

travis-anderson avatar travis-anderson commented on July 20, 2024

Yep, if you read the code, there is no implementation of any settings other than the Rspec ones. Misleading documentation and settings 👎

from atom-ruby-test.

moxley avatar moxley commented on July 20, 2024

cucumber-sample

It works for me.

@travis-anderson: I don't follow you.

from atom-ruby-test.

etlund avatar etlund commented on July 20, 2024

(v 0.9.13)
I am still not able to get it to run cucumber features. When I open a .feature file and run "Ruby Test: Test File" (or any of the other commands), it tries "Running test: rspec --tty features/homepage.feature" and blows up.

I uninstalled it, wiped the settings clean, reinstalled it and have the same problem. I've disabled all (non-core) packages with the same results.

I've also tried all kinds of command line variations in the settings:
bundle exec cucumber --color {relative_path}
spring cucumber --color {relative_path}
bin/cucumber --color {relative_path}

I've also changed the rspec command line to "cucumber --color {relative_path}" and it still tries to run a feature file by calling "rspec --tty features/homepage.feature"

from atom-ruby-test.

travis-anderson avatar travis-anderson commented on July 20, 2024

@moxley What is the command to run cucumber tests? It's possible that something is messing up in the framework detection because when I run the 'test-file' command with a .feature file open, it still runs my configured Rspec File Command

from atom-ruby-test.

wendelscardua avatar wendelscardua commented on July 20, 2024

I don't know if I'm parsing it right, but it seems that, according to lib/source-info.coffee (line 114), ruby-test will run the test as rspec if the current project uses rspec... Except projects like the one I'm working with, which uses both rspec and cucumber. I think it should check filetype first, then project type (at least for single test runs).

from atom-ruby-test.

moxley avatar moxley commented on July 20, 2024

0ab0431 fixes the scenario where a cucumber file wasn't being detected when a .rspec file is in the project. Thanks for your contribution to ruby-test!

from atom-ruby-test.

etlund avatar etlund commented on July 20, 2024

Fixed! Thanks for chasing that down.

from atom-ruby-test.

Related Issues (20)

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.