![]() ![]() It's having to do it for every different possible subset that makes it unworkable. I'd accept an answer which I needed to do once per module. Is there a way to tell RubyMine that if I start tests off inside modules/example/spec then it should use a particular configuration, irrespective of whether I'm running them for the whole folder or a single test? The thing where tests wont run without a particular working directory isnt a bug in Rubymine, its a property of our tests. Ditto for a context in the file, or a single test in a context. If I set it up for a subfolder, that works for that subfolder, but not for a single file in that subfolder. ![]() ![]() If I create a configuration for "all tests in modules/example/spec" then it will work if I right-click modules/example/spec and run the tests, but if I then run them for a subfolder, it won't. But I have to do that for every test run. For any given test run, I can change the working directory by creating a new Run/Debug configuration, and the tests will then run (and debug) correctly. I like to run my tests in RubyMine, especially when using the debugger. Won't work but cd modules/example bundle exec rspec spec Browse to the location of the RubyInstaller tool, and double-click. If no specific version is needed, select the bolded option: Save the file and remember its location. Install GitExtensions, version 2.44 Setup Complete recommand but other version may also very stable, if you download not Complete version, also need to install msysgit and kdiff3. To run the module tests correctly, it's necessary to change into the module folder before invoking rspec so bin/rspec modules/example/spec Step 1: Download the RubyInstaller Tool Use a web browser to navigate to the Download page (linked above). Change ProgramsRuby 1.9.3-p374Start Command Prompt with Ruby shortcut properties, append C:Windowsansicon.exe at the begining to Shortcut->Target. The main app has a (decreasing but still large) number of rspec tests under spec/ and also each module has its own tests under modules//spec/. We're in the process of breaking up our Rails app into modules. ![]()
0 Comments
Leave a Reply. |