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

Test Explorer only shows a period in the tree. #96

Closed jriverac closed 1 year ago

jriverac commented 2 years ago

Your environment

Expected behavior

I expected to see a tree of the tests in the files for my rspec specs

Actual behavior

I see a tree with a single node and that node as a period "." in it. Nothing more.

You can see the screenshot here --> https://www.dropbox.com/s/crwskq9pg33thb9/2022-06-09_09-28-57.png?dl=0

This section should include any relevant screenshots, code samples, console output, etc. The more information we have to reproduce the better!

This is the printout I got from the output.

spec/spec_helper.rb was saved - checking if this effects /Users/jrivera/Code/Ruby/ampil11-account-feed-publisher
[2022-06-09 02:22:16.973] [INFO] A test file has been edited, reloading tests.
[2022-06-09 02:22:16.973] [INFO] Loading Ruby tests...
[2022-06-09 02:22:16.973] [INFO] Loading RSpec tests...
[2022-06-09 02:22:16.974] [INFO] Running dry-run of RSpec test suite with the following command: ./bin/rspec --pattern 'spec/**/*_test.rb,spec/**/test_*.rb,spec/**/*_spec.rb' --require /Users/jrivera/.vscode/extensions/connorshea.vscode-ruby-test-adapter-0.9.0/custom_formatter.rb --format CustomFormatter --order defined --dry-run
[2022-06-09 02:22:16.976] [INFO] Sending autorun event
[2022-06-09 02:22:24.201] [DEBUG] Passing raw output from dry-run into getJsonFromOutput.
[2022-06-09 02:22:24.201] [DEBUG] Run options: include {:focus=>true}

All examples were filtered out; ignoring {:focus=>true}
PASSED: ./spec/consumers/aws_feed_consumer_spec.rb[1:1]
.PASSED: ./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:1]
.PASSED: ./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:2]
.PASSED: ./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:3]
.PASSED: ./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:4]
.PASSED: ./spec/consumers/aws_feed_consumer_spec.rb[1:2:2:1]
.PASSED: ./spec/consumers/aws_feed_consumer_spec.rb[1:2:2:2]
.PASSED: ./spec/consumers/aws_feed_consumer_spec.rb[1:2:3:1]
.PASSED: ./spec/consumers/aws_feed_consumer_spec.rb[1:2:3:2]
.PENDING: ./spec/papers_spec.rb[1:1]
*PENDING: ./spec/processors/account_feed_processor_spec.rb[1:1]
*PASSED: ./spec/processors/account_feed_processor_spec.rb[1:2]
.PASSED: ./spec/processors/billing_event_feed_processor_spec.rb[1:1]
.PASSED: ./spec/processors/billing_event_feed_processor_spec.rb[1:2]
.

Pending: (Failures listed here are expected and do not affect your suite's status)

  1) Papers License Validation knows and is satisfied by all dependency licenses
     # Temporarily skipped with xit
     # ./spec/papers_spec.rb:6

  2) AccountFeedProcessor updates the Integration Account with the aws_account_id
     # Temporarily skipped with xit
     # ./spec/processors/account_feed_processor_spec.rb:12

Finished in 0.0193 seconds (files took 6.4 seconds to load)
14 examples, 0 failures, 2 pending
START_OF_TEST_JSON{"version":"3.11.0","messages":["Run options: include {:focus=\u003etrue}","\nAll examples were filtered out; ignoring {:focus=\u003etrue}"],"examples":[{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:1]","description":"is a subclass of NrSqsConsumer","full_description":"AwsFeedConsumer is a subclass of NrSqsConsumer","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":17,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:1]","description":"creates an invalid message record when the account feed message is invalid","full_description":"AwsFeedConsumer#on_message invalid messages creates an invalid message record when the account feed message is invalid","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":30,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:2]","description":"creates an invalid message record when the billing event feed message is invalid","full_description":"AwsFeedConsumer#on_message invalid messages creates an invalid message record when the billing event feed message is invalid","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":36,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:3]","description":"creates an invalid message record when the billing event feed message does not have the correct action","full_description":"AwsFeedConsumer#on_message invalid messages creates an invalid message record when the billing event feed message does not have the correct action","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":42,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:4]","description":"creates an invalid message record when the billing event feed message does not have the correct transaction type","full_description":"AwsFeedConsumer#on_message invalid messages creates an invalid message record when the billing event feed message does not have the correct transaction type","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":48,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:2:1]","description":"updates the integration account with the aws account id","full_description":"AwsFeedConsumer#on_message account feed messages updates the integration account with the aws account id","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":60,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:2:2]","description":"does not update the integration account without an aws account id","full_description":"AwsFeedConsumer#on_message account feed messages does not update the integration account without an aws account id","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":67,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:3:1]","description":"creates a billing event record","full_description":"AwsFeedConsumer#on_message billing feed messages creates a billing event record","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":77,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:3:2]","description":"does not create duplicate records","full_description":"AwsFeedConsumer#on_message billing feed messages does not create duplicate records","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":83,"type":null,"pending_message":null},{"id":"./spec/papers_spec.rb[1:1]","description":"knows and is satisfied by all dependency licenses","full_description":"Papers License Validation knows and is satisfied by all dependency licenses","status":"pending","file_path":"./spec/papers_spec.rb","line_number":6,"type":null,"pending_message":"Temporarily skipped with xit"},{"id":"./spec/processors/account_feed_processor_spec.rb[1:1]","description":"updates the Integration Account with the aws_account_id","full_description":"AccountFeedProcessor updates the Integration Account with the aws_account_id","status":"pending","file_path":"./spec/processors/account_feed_processor_spec.rb","line_number":12,"type":null,"pending_message":"Temporarily skipped with xit"},{"id":"./spec/processors/account_feed_processor_spec.rb[1:2]","description":"does not update the Integration Account when the aws_account_id is missing","full_description":"AccountFeedProcessor does not update the Integration Account when the aws_account_id is missing","status":"passed","file_path":"./spec/processors/account_feed_processor_spec.rb","line_number":18,"type":null,"pending_message":null},{"id":"./spec/processors/billing_event_feed_processor_spec.rb[1:1]","description":"creates a new Billing Event Feed record","full_description":"BillingEventProcessor creates a new Billing Event Feed record","status":"passed","file_path":"./spec/processors/billing_event_feed_processor_spec.rb","line_number":8,"type":null,"pending_message":null},{"id":"./spec/processors/billing_event_feed_processor_spec.rb[1:2]","description":"does not create duplicate records","full_description":"BillingEventProcessor does not create duplicate records","status":"passed","file_path":"./spec/processors/billing_event_feed_processor_spec.rb","line_number":13,"type":null,"pending_message":null}],"summary":{"duration":0.019298,"example_count":14,"failure_count":0,"pending_count":2,"errors_outside_of_examples_count":0},"summary_line":"14 examples, 0 failures, 2 pending"}END_OF_TEST_JSON

[2022-06-09 02:22:24.201] [DEBUG] Parsing the below JSON:
[2022-06-09 02:22:24.201] [DEBUG] {"version":"3.11.0","messages":["Run options: include {:focus=\u003etrue}","\nAll examples were filtered out; ignoring {:focus=\u003etrue}"],"examples":[{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:1]","description":"is a subclass of NrSqsConsumer","full_description":"AwsFeedConsumer is a subclass of NrSqsConsumer","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":17,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:1]","description":"creates an invalid message record when the account feed message is invalid","full_description":"AwsFeedConsumer#on_message invalid messages creates an invalid message record when the account feed message is invalid","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":30,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:2]","description":"creates an invalid message record when the billing event feed message is invalid","full_description":"AwsFeedConsumer#on_message invalid messages creates an invalid message record when the billing event feed message is invalid","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":36,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:3]","description":"creates an invalid message record when the billing event feed message does not have the correct action","full_description":"AwsFeedConsumer#on_message invalid messages creates an invalid message record when the billing event feed message does not have the correct action","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":42,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:1:4]","description":"creates an invalid message record when the billing event feed message does not have the correct transaction type","full_description":"AwsFeedConsumer#on_message invalid messages creates an invalid message record when the billing event feed message does not have the correct transaction type","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":48,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:2:1]","description":"updates the integration account with the aws account id","full_description":"AwsFeedConsumer#on_message account feed messages updates the integration account with the aws account id","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":60,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:2:2]","description":"does not update the integration account without an aws account id","full_description":"AwsFeedConsumer#on_message account feed messages does not update the integration account without an aws account id","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":67,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:3:1]","description":"creates a billing event record","full_description":"AwsFeedConsumer#on_message billing feed messages creates a billing event record","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":77,"type":null,"pending_message":null},{"id":"./spec/consumers/aws_feed_consumer_spec.rb[1:2:3:2]","description":"does not create duplicate records","full_description":"AwsFeedConsumer#on_message billing feed messages does not create duplicate records","status":"passed","file_path":"./spec/consumers/aws_feed_consumer_spec.rb","line_number":83,"type":null,"pending_message":null},{"id":"./spec/papers_spec.rb[1:1]","description":"knows and is satisfied by all dependency licenses","full_description":"Papers License Validation knows and is satisfied by all dependency licenses","status":"pending","file_path":"./spec/papers_spec.rb","line_number":6,"type":null,"pending_message":"Temporarily skipped with xit"},{"id":"./spec/processors/account_feed_processor_spec.rb[1:1]","description":"updates the Integration Account with the aws_account_id","full_description":"AccountFeedProcessor updates the Integration Account with the aws_account_id","status":"pending","file_path":"./spec/processors/account_feed_processor_spec.rb","line_number":12,"type":null,"pending_message":"Temporarily skipped with xit"},{"id":"./spec/processors/account_feed_processor_spec.rb[1:2]","description":"does not update the Integration Account when the aws_account_id is missing","full_description":"AccountFeedProcessor does not update the Integration Account when the aws_account_id is missing","status":"passed","file_path":"./spec/processors/account_feed_processor_spec.rb","line_number":18,"type":null,"pending_message":null},{"id":"./spec/processors/billing_event_feed_processor_spec.rb[1:1]","description":"creates a new Billing Event Feed record","full_description":"BillingEventProcessor creates a new Billing Event Feed record","status":"passed","file_path":"./spec/processors/billing_event_feed_processor_spec.rb","line_number":8,"type":null,"pending_message":null},{"id":"./spec/processors/billing_event_feed_processor_spec.rb[1:2]","description":"does not create duplicate records","full_description":"BillingEventProcessor does not create duplicate records","status":"passed","file_path":"./spec/processors/billing_event_feed_processor_spec.rb","line_number":13,"type":null,"pending_message":null}],"summary":{"duration":0.019298,"example_count":14,"failure_count":0,"pending_count":2,"errors_outside_of_examples_count":0},"summary_line":"14 examples, 0 failures, 2 pending"}