Git Product home page Git Product logo

Comments (7)

factor4 avatar factor4 commented on August 21, 2024 5

@roychoo: Did your PR cover tests with spaces? I used to write my tests like this:

test "awesome feature" do
  ...
end

I the settings I changed the single test command to ruby -I test {relative_path} -n /{regex}/ but this did not trigger my test. I think minitest only recognise valid ruby method names in the regex. It would be great if spaces get replaced by underscore. If I run the test on the console with ruby -I test /path/to/test.rb -n /awesome_feature/ the test run.

from atom-ruby-test.

tony-kerz avatar tony-kerz commented on August 21, 2024

so i found a fork of the m gem which works with minitest-5, and was able to use that as a work around for this:

add this to your Gemfile:

group :test do
  gem 'm', git: 'https://github.com/ANorwell/m.git', :branch => 'minitest_5'
end

and use this for your run configuration:

bundle exec m /path/to/project/{relative_path}:{line_number}

would still prefer to have a {test_name_at_line} variable, but this gets me thru...

from atom-ruby-test.

GerritWanderer avatar GerritWanderer commented on August 21, 2024

Thanks @tony-kerz, the fork of the m gem works well.

from atom-ruby-test.

tony-kerz avatar tony-kerz commented on August 21, 2024

hey @GerritWanderer glad that works for you.

the other option i recently stumbled across is using zeus which can run a test at the cursor as well.

check out the section on zeus in this document: http://brendankemp.com/essays/atom-is-ready-to-be-your-editor/

i have trended to this solution as i have never used zeus before and it is also pretty cool in terms of eliminating start up wait times for a ruby process. check it out here: https://github.com/burke/zeus

regards,
tony.

from atom-ruby-test.

GerritWanderer avatar GerritWanderer commented on August 21, 2024

I'll try Zeus out. This is an great article by Brendan Kemp, I already discovered some new features :)

from atom-ruby-test.

roychoo avatar roychoo commented on August 21, 2024

I had made a pr #49 to run test based on regex.

from atom-ruby-test.

brilnius avatar brilnius commented on August 21, 2024

For those landing on this issue like me, I made a Pull Request attempt (#117) for the annoying limitation mentioned above by @roychoo

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.