Closed DanielJackson-Oslo closed 3 years ago
Possibly you could reproduce without the scaffolding, using just the tests that come with a fresh Rails installation.
Seems to be the same issue as #20 and the temporary fix in https://github.com/connorshea/vscode-ruby-test-adapter/issues/20#issuecomment-657348728 works for me!
Closing this one, and bumping #20 instead.
Your environment
vscode-ruby-test-adapter
version: v 0.9.0Expected behavior
When running tests scaffolded by Rails, the results of the tests show up in green or red, both when running Rails and running a simpler Sinatra app.
Actual behavior
When running the tests for a Rails app, the results never show. Instead the tests remain as they were before running. Everything works as expected in the simpler Sinatra app.
Setting the debug output flag, this is the output I get:
When I try running
bundle exec rake -R $EXT_DIR vscode:minitest:run
in terminal, the tests exit correctly, with the following output:It seems to me like the JSON results are either parsed incorrectly, or passed incorrectly.
Steps to reproduce
1) Set up Rails (See Gemfile below)
rails new test
,bundle install
, etc. 2) Scaffold a primitive model withrails g scaffold Test test:string
and migrate the db withrails db:migrate
3) Run the tests (I had to restart vscode to get the tests recognized)Gemfile:
Steps I've tried that didn't work:
1) Adding minitest to the gem file explicitly. AFAICT it did no difference.