Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load test suite #120

Open
jperna7254 opened this issue May 8, 2023 · 0 comments
Open

Unable to load test suite #120

jperna7254 opened this issue May 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jperna7254
Copy link

Your environment

  • vscode-ruby-test-adapter version: 0.9.2
  • Ruby version: 3.1.2
  • VS Code version: 1.78.0
  • Operating System: Ventura 13.2.1
  • RSpec or Minitest version: 3.10.0

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!

@jperna7254 jperna7254 added the bug Something isn't working label May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant