rails-test-runner | Visual studio code to run your specs | Application Framework library
kandi X-RAY | rails-test-runner Summary
kandi X-RAY | rails-test-runner Summary
Run your rails tests smoothly from within Visual Studio Code.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rails-test-runner
rails-test-runner Key Features
rails-test-runner Examples and Code Snippets
Community Discussions
Trending Discussions on rails-test-runner
QUESTION
I upgraded from rails 5.1.1
to rails 5.2.0
. My process was the following:
- Upgraded the rails gems and resolved dependency issues
- Looked at the railsdiff between 5.1.1 and 5.2.0 and updated files as needed
Everything looks to be working well except I noticed some odd behavior within my test suite
- running the command
rails test test/system
is not running my system tests at all. It runs all of my other tests (policies, services, models, jobs), but does not run my system tests.- Strangely: running a specific system test file, ex:
rails test test/system/comment_test.rb
works.
- Strangely: running a specific system test file, ex:
- Running specific directories of tests no longer works. For example, previously I could run
rails test test/policies
,rails test test/models
, andrails test test/services
and it would only run tests in those directories. This is no longer working. Instead it just runs all of tests (except the system tests).
Any idea what changed between rails 5.1.1
and rails 5.2.0
that is causing this behavior? Or, perhaps I am just missing something?
According to the Rails Guides Testing Rails Applications: 2.7 The Rails Test Runner, it states that one should be able to run tests on a per-directory basis:
You can also run an entire directory of tests by providing the path to the directory.
Expected behavior:
rails test
=> run entire test suite
rails test test/system
=> run all tests in the system directory
rails test test/models
=> run only the tests in the models directory
Reproducing the Behavior
I can reproduce the behavior with the following commands:
...ANSWER
Answered 2018-May-13 at 14:32From rails -T
you can see the available tasks. The two relevant ones to this questions are
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rails-test-runner
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page