connorshea / vscode-ruby-test-adapter

A Ruby test adapter extension for the VS Code Test Explorer
https://marketplace.visualstudio.com/items?itemName=connorshea.vscode-ruby-test-adapter
MIT License
85 stars 52 forks source link

Unable to load test suite #120

Open jperna7254 opened 1 year ago

jperna7254 commented 1 year ago

Your environment

Expected behavior

Test suites are loaded.

Actual behavior

Test suites never load. Error message shows up.

image

Clicking to view error message shows this (just message about ignoring some specs)

Run options: exclude {:test_type=>:integration}

Output log panel shows this

[2023-05-08 16:09:47.762] [INFO] Loading Ruby tests...
[2023-05-08 16:09:47.763] [INFO] Loading RSpec tests...
[2023-05-08 16:09:47.763] [INFO] Running dry-run of RSpec test suite with the following command: rspec --pattern './spec//**/*_test.rb,./spec//**/test_*.rb,./spec//**/*_spec.rb' --require /Users/jeremyperna/.vscode/extensions/connorshea.vscode-ruby-test-adapter-0.9.2/custom_formatter.rb --format CustomFormatter --order defined --dry-run
[2023-05-08 16:09:58.872] [ERROR] Error while finding RSpec test suite: Command failed: rspec --pattern './spec//**/*_test.rb,./spec//**/test_*.rb,./spec//**/*_spec.rb' --require /Users/jeremyperna/.vscode/extensions/connorshea.vscode-ruby-test-adapter-0.9.2/custom_formatter.rb --format CustomFormatter --order defined --dry-run
Loading DataRecord Environment: staging
fatal: no tag exactly matches 'b5dd618a0557b613929949d279d79f235c07577d'
WARNING: Unexpected middleware set after the adapter. This won't be supported from Faraday 1.0.
WARNING: Unexpected middleware set after the adapter. This won't be supported from Faraday 1.0.
WARNING: Shared example group 'lexis model test' has been previously defined at:
  /Users/jeremyperna/dev/data_service_server/spec/support/shared_examples/lexis_model_test.rb:3
...and you are now defining it at:
  /Users/jeremyperna/dev/data_service_server/spec/support/shared_examples/lexis_model_test.rb:3
The new definition will overwrite the original one.
WARNING: Shared example group 'lexis nested serializer' has been previously defined at:
  /Users/jeremyperna/dev/data_service_server/spec/support/shared_examples/lexis_nested_serializer_spec.rb:3
...and you are now defining it at:
  /Users/jeremyperna/dev/data_service_server/spec/support/shared_examples/lexis_nested_serializer_spec.rb:3
The new definition will overwrite the original one.
Coverage (49.60%) is below the expected minimum coverage (93.00%).
SimpleCov failed with exit 2

Running the dry-run of RSpec tests manually in terminal succeeds without any errors.

I didn't change any configuration settings, this was the behavior right off the shelf. Not sure what other details to share but will share whatever is needed to fix this. Trying to get my team setup with using VSCode on a Ruby on Rails project so very important that I resolve this issue. Thanks!