vscode-ruby-test-adapter icon indicating copy to clipboard operation
vscode-ruby-test-adapter copied to clipboard

No result from individual tests

Open hazg opened this issue 2 years ago • 0 comments

Your environment

  • vscode-ruby-test-adapter version: v0.9.2
  • Ruby version: 2.5.1p57
  • VS Code version: 1.75.1
  • Operating System: Ubuntu 22
  • RSpec or Minitest version: 3.10
  • Docker image: FROM ruby:2.5.1

Expected behavior

When running all the tests image

Actual behavior

When running individual test image There is no error description, or success status.

Logs

[2023-02-18 16:25:27.369] [INFO] Running Ruby tests ["./spec/controllers/landings_controller_spec.rb[1:1:1]"]
[2023-02-18 16:25:27.370] [INFO] Running single test: /home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb:16
[2023-02-18 16:25:27.370] [INFO] Running command: docker exec --tty test_site_web_1 ./docker-rspec.sh --require /home/dev/.vscode/extensions/connorshea.vscode-ruby-test-adapter-0.9.2/custom_formatter.rb --format CustomFormatter '/home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb:16'
[2023-02-18 16:25:36.382] [DEBUG] [CHILD PROCESS OUTPUT] PASSED: /home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb[1:1:1]
[2023-02-18 16:25:36.383] [DEBUG] [CHILD PROCESS OUTPUT] START_OF_TEST_JSON{"version":"3.10.0","messages":["Run options: include {:locations=\u003e{\"/home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb\"=\u003e[16]}}"],"seed":38182,"examples":[{"id":"/home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb[1:1:1]","description":"returns http success","full_description":"LandingsController GET #show returns http success","status":"passed","file_path":"/home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb","line_number":16,"type":"controller","pending_message":null}],"summary":{"duration":1.913938565,"example_count":1,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"1 example, 0 failures"}END_OF_TEST_JSON
[2023-02-18 16:25:36.383] [DEBUG] Parsing the below JSON:
[2023-02-18 16:25:36.383] [DEBUG] {"version":"3.10.0","messages":["Run options: include {:locations=\u003e{\"/home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb\"=\u003e[16]}}"],"seed":38182,"examples":[{"id":"/home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb[1:1:1]","description":"returns http success","full_description":"LandingsController GET #show returns http success","status":"passed","file_path":"/home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb","line_number":16,"type":"controller","pending_message":null}],"summary":{"duration":1.913938565,"example_count":1,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"1 example, 0 failures"}
[2023-02-18 16:25:36.383] [DEBUG] Handling status of test: {"id":"/home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb[1:1:1]","description":"returns http success","full_description":"LandingsController GET #show returns http success","status":"passed","file_path":"/home/dev/Sites/test_site/spec/controllers/landings_controller_spec.rb","line_number":16,"type":"controller","pending_message":null}
[2023-02-18 16:25:37.513] [DEBUG] [CHILD PROCESS OUTPUT] Coverage report generated for RSpec to /app/coverage. 835 / 21549 LOC (3.87%) covered.
[2023-02-18 16:25:37.567] [INFO] Child process has exited. Sending test run finish event.

docker-rspec.sh

#!/bin/bash
RAILS_ENV=test
bundle exec rspec $@

hazg avatar Feb 18 '23 16:02 hazg