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

No result from individual tests #116

Open
hazg opened this issue Feb 18, 2023 · 0 comments
Open

No result from individual tests #116

hazg opened this issue Feb 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hazg
Copy link

hazg commented Feb 18, 2023

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 hazg added the bug Something isn't working label Feb 18, 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