vscode-ruby-test-adapter
vscode-ruby-test-adapter copied to clipboard
Minitest fails to report back
Your environment
-
vscode-ruby-test-adapter
version: 0.6.0 - Ruby version: 2.6.3
- VS Code version: 1.36.0
- Operating System: Windows 10 (using WSL)
- Minitest version: 5.11.3
- Rails version: 6.0.0.rc1
- VS Code: Using Remote WSL
Actual behavior
- Tests successfully populate in sidebar
- Click on the run button
- Button turns blue but fails to report back
Ruby Test Explorer Output Log
[2019-07-08 17:43:37.038] [INFO] Running Ruby tests ["./test/controllers/health_checks_controller_test.rb"]
[2019-07-08 17:43:37.038] [INFO] Running test file: /mnt/c/Users/curre/Code/haven/test/controllers/health_checks_controller_test.rb
[2019-07-08 17:43:37.038] [INFO] Running command: bundle exec rake -R $EXT_DIR vscode:minitest:run test/controllers/health_checks_controller_test.rb
[2019-07-08 17:44:00.786] [DEBUG] [CHILD PROCESS OUTPUT] START_OF_TEST_JSON{"version":"5.11.3","summary":{"duration":3.63,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"Total time: 3.63, Runs: 0, Assertions: 0, Failures: 0, Errors: 0, Skips: 0","examples":[]}END_OF_TEST_JSON
[2019-07-08 17:44:00.786] [DEBUG] Parsing the below JSON:
[2019-07-08 17:44:00.786] [DEBUG] {"version":"5.11.3","summary":{"duration":3.63,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"Total time: 3.63, Runs: 0, Assertions: 0, Failures: 0, Errors: 0, Skips: 0","examples":[]}
[2019-07-08 17:44:00.794] [INFO] Child process has exited. Sending test run finish event.
Developer Tools Console Output
- When running all tests from ui, no output in console
- When running single file from ui, no output in console
- When running single method from ui:
[Extension Host] stack trace: TypeError: Cannot read property 'status' of undefined at MinitestTests.handleStatus (/home/curreta/.vscode-server/extensions/connorshea.vscode-ruby-test-adapter-0.6.0/out/minitestTests.js:110:18) at MinitestTests.<anonymous> (/home/curreta/.vscode-server/extensions/connorshea.vscode-ruby-test-adapter-0.6.0/out/tests.js:282:26) at Generator.next (<anonymous>) at fulfilled (/home/curreta/.vscode-server/extensions/connorshea.vscode-ruby-test-adapter-0.6.0/node_modules/tslib/tslib.js:104:62) at process._tickCallback (internal/process/next_tick.js:68:7)
TypeError: Cannot read property 'status' of undefined
at MinitestTests.handleStatus (/home/curreta/.vscode-server/extensions/connorshea.vscode-ruby-test-adapter-0.6.0/out/minitestTests.js:110)
at MinitestTests.<anonymous> (/home/curreta/.vscode-server/extensions/connorshea.vscode-ruby-test-adapter-0.6.0/out/tests.js:282)
at Generator.next (<anonymous>)
at fulfilled (/home/curreta/.vscode-server/extensions/connorshea.vscode-ruby-test-adapter-0.6.0/node_modules/tslib/tslib.js:104)
at process._tickCallback (internal/process/next_tick.js:68)
Debug attempted
- I extracted the ruby rake task into my application to run independently
- The runner successfully adds the files, and extracts out the proper runnable classes
- The Reporter#prerecord never gets run (as apparent in logs with no "RUNNING:...")
A few questions:
- Could you share a screenshot of the test sidebar after it loads?
- Could you share the full Output of the Ruby Test Explorer logs?
- You mentioned you extracted the rake task to your app to run independently, could you share the output of that? (specifically
bundle exec rake -R $EXT_DIR vscode:minitest:run test/controllers/health_checks_controller_test.rb
or similar, where$EXT_DIR
is the location of the rake task) - What does
health_checks_controller_test.rb
look like? You can replace the actual test code with# code
, I'd just like to see theclass
/test
structure.
I'll see if I can reproduce this behavior via a Docker container on my Mac, and if not I guess I'll need to set up WSL :)
Screen of test sidebar after load:
Ruby Test Explorer Log
- opened VS Code
- clicked on run health_check_controller.rb "should get new"
- clicked on run health_check_controller.rb
- clicked on run all tests
[2019-07-10 17:35:51.628] [INFO] Loading Ruby tests...
[2019-07-10 17:35:51.629] [INFO] Loading Minitest tests...
[2019-07-10 17:35:51.629] [INFO] Getting a list of Minitest tests in suite with the following command: bundle exec rake -R $EXT_DIR vscode:minitest:list
[2019-07-10 17:35:53.869] [DEBUG] Passing raw output from dry-run into getJsonFromOutput.
[2019-07-10 17:35:53.869] [DEBUG] START_OF_TEST_JSON{"version":"5.11.3","examples":[{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":8,"klass":"AilmentsControllerTest","method":"test_should_get_index","id":"./test/controllers/ailments_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":13,"klass":"AilmentsControllerTest","method":"test_should_get_new","id":"./test/controllers/ailments_controller_test.rb[1:1:2]"},{"description":"should create ailment","full_description":"should create ailment","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":18,"klass":"AilmentsControllerTest","method":"test_should_create_ailment","id":"./test/controllers/ailments_controller_test.rb[1:1:3]"},{"description":"should show ailment","full_description":"should show ailment","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":26,"klass":"AilmentsControllerTest","method":"test_should_show_ailment","id":"./test/controllers/ailments_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":31,"klass":"AilmentsControllerTest","method":"test_should_get_edit","id":"./test/controllers/ailments_controller_test.rb[1:1:5]"},{"description":"should update ailment","full_description":"should update ailment","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":36,"klass":"AilmentsControllerTest","method":"test_should_update_ailment","id":"./test/controllers/ailments_controller_test.rb[1:1:6]"},{"description":"should destroy ailment","full_description":"should destroy ailment","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":41,"klass":"AilmentsControllerTest","method":"test_should_destroy_ailment","id":"./test/controllers/ailments_controller_test.rb[1:1:7]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":8,"klass":"ClinicalNotesControllerTest","method":"test_should_get_index","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":13,"klass":"ClinicalNotesControllerTest","method":"test_should_get_new","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:2]"},{"description":"should create clinical note","full_description":"should create clinical note","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":18,"klass":"ClinicalNotesControllerTest","method":"test_should_create_clinical_note","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:3]"},{"description":"should show clinical note","full_description":"should show clinical note","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":26,"klass":"ClinicalNotesControllerTest","method":"test_should_show_clinical_note","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":31,"klass":"ClinicalNotesControllerTest","method":"test_should_get_edit","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:5]"},{"description":"should update clinical note","full_description":"should update clinical note","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":36,"klass":"ClinicalNotesControllerTest","method":"test_should_update_clinical_note","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:6]"},{"description":"should destroy clinical note","full_description":"should destroy clinical note","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":41,"klass":"ClinicalNotesControllerTest","method":"test_should_destroy_clinical_note","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:7]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/health_checks_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/health_checks_controller_test.rb","line_number":10,"klass":"HealthChecksControllerTest","method":"test_should_get_new","id":"./test/controllers/health_checks_controller_test.rb[1:1:1]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":8,"klass":"MedicinesControllerTest","method":"test_should_get_index","id":"./test/controllers/medicines_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":13,"klass":"MedicinesControllerTest","method":"test_should_get_new","id":"./test/controllers/medicines_controller_test.rb[1:1:2]"},{"description":"should create medicine","full_description":"should create medicine","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":18,"klass":"MedicinesControllerTest","method":"test_should_create_medicine","id":"./test/controllers/medicines_controller_test.rb[1:1:3]"},{"description":"should show medicine","full_description":"should show medicine","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":26,"klass":"MedicinesControllerTest","method":"test_should_show_medicine","id":"./test/controllers/medicines_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":31,"klass":"MedicinesControllerTest","method":"test_should_get_edit","id":"./test/controllers/medicines_controller_test.rb[1:1:5]"},{"description":"should update medicine","full_description":"should update medicine","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":36,"klass":"MedicinesControllerTest","method":"test_should_update_medicine","id":"./test/controllers/medicines_controller_test.rb[1:1:6]"},{"description":"should destroy medicine","full_description":"should destroy medicine","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":41,"klass":"MedicinesControllerTest","method":"test_should_destroy_medicine","id":"./test/controllers/medicines_controller_test.rb[1:1:7]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":10,"klass":"OrganizationsControllerTest","method":"test_should_get_index","id":"./test/controllers/organizations_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":15,"klass":"OrganizationsControllerTest","method":"test_should_get_new","id":"./test/controllers/organizations_controller_test.rb[1:1:2]"},{"description":"should create organization","full_description":"should create organization","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":20,"klass":"OrganizationsControllerTest","method":"test_should_create_organization","id":"./test/controllers/organizations_controller_test.rb[1:1:3]"},{"description":"should show organization","full_description":"should show organization","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":28,"klass":"OrganizationsControllerTest","method":"test_should_show_organization","id":"./test/controllers/organizations_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":33,"klass":"OrganizationsControllerTest","method":"test_should_get_edit","id":"./test/controllers/organizations_controller_test.rb[1:1:5]"},{"description":"should update organization","full_description":"should update organization","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":38,"klass":"OrganizationsControllerTest","method":"test_should_update_organization","id":"./test/controllers/organizations_controller_test.rb[1:1:6]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":10,"klass":"ResidentsControllerTest","method":"test_should_get_index","id":"./test/controllers/residents_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":15,"klass":"ResidentsControllerTest","method":"test_should_get_new","id":"./test/controllers/residents_controller_test.rb[1:1:2]"},{"description":"should create resident","full_description":"should create resident","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":20,"klass":"ResidentsControllerTest","method":"test_should_create_resident","id":"./test/controllers/residents_controller_test.rb[1:1:3]"},{"description":"should show resident","full_description":"should show resident","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":28,"klass":"ResidentsControllerTest","method":"test_should_show_resident","id":"./test/controllers/residents_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":33,"klass":"ResidentsControllerTest","method":"test_should_get_edit","id":"./test/controllers/residents_controller_test.rb[1:1:5]"},{"description":"should update resident","full_description":"should update resident","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":38,"klass":"ResidentsControllerTest","method":"test_should_update_resident","id":"./test/controllers/residents_controller_test.rb[1:1:6]"},{"description":"should destroy resident","full_description":"should destroy resident","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":43,"klass":"ResidentsControllerTest","method":"test_should_destroy_resident","id":"./test/controllers/residents_controller_test.rb[1:1:7]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":8,"klass":"TreatmentsControllerTest","method":"test_should_get_index","id":"./test/controllers/treatments_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":13,"klass":"TreatmentsControllerTest","method":"test_should_get_new","id":"./test/controllers/treatments_controller_test.rb[1:1:2]"},{"description":"should create treatment","full_description":"should create treatment","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":18,"klass":"TreatmentsControllerTest","method":"test_should_create_treatment","id":"./test/controllers/treatments_controller_test.rb[1:1:3]"},{"description":"should show treatment","full_description":"should show treatment","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":26,"klass":"TreatmentsControllerTest","method":"test_should_show_treatment","id":"./test/controllers/treatments_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":31,"klass":"TreatmentsControllerTest","method":"test_should_get_edit","id":"./test/controllers/treatments_controller_test.rb[1:1:5]"},{"description":"should update treatment","full_description":"should update treatment","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":36,"klass":"TreatmentsControllerTest","method":"test_should_update_treatment","id":"./test/controllers/treatments_controller_test.rb[1:1:6]"},{"description":"should destroy treatment","full_description":"should destroy treatment","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":41,"klass":"TreatmentsControllerTest","method":"test_should_destroy_treatment","id":"./test/controllers/treatments_controller_test.rb[1:1:7]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/vaccinations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/vaccinations_controller_test.rb","line_number":12,"klass":"VaccinationsControllerTest","method":"test_should_get_new","id":"./test/controllers/vaccinations_controller_test.rb[1:1:1]"},{"description":"should create vaccination","full_description":"should create vaccination","file_path":"./test/controllers/vaccinations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/vaccinations_controller_test.rb","line_number":17,"klass":"VaccinationsControllerTest","method":"test_should_create_vaccination","id":"./test/controllers/vaccinations_controller_test.rb[1:1:2]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/ailments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/ailments_test.rb","line_number":8,"klass":"AilmentsTest","method":"test_visiting_the_index","id":"./test/system/ailments_test.rb[1:1:1]"},{"description":"creating a Ailment","full_description":"creating a Ailment","file_path":"./test/system/ailments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/ailments_test.rb","line_number":13,"klass":"AilmentsTest","method":"test_creating_a_Ailment","id":"./test/system/ailments_test.rb[1:1:2]"},{"description":"updating a Ailment","full_description":"updating a Ailment","file_path":"./test/system/ailments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/ailments_test.rb","line_number":26,"klass":"AilmentsTest","method":"test_updating_a_Ailment","id":"./test/system/ailments_test.rb[1:1:3]"},{"description":"destroying a Ailment","full_description":"destroying a Ailment","file_path":"./test/system/ailments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/ailments_test.rb","line_number":39,"klass":"AilmentsTest","method":"test_destroying_a_Ailment","id":"./test/system/ailments_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/clinical_notes_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/clinical_notes_test.rb","line_number":8,"klass":"ClinicalNotesTest","method":"test_visiting_the_index","id":"./test/system/clinical_notes_test.rb[1:1:1]"},{"description":"creating a Clinical note","full_description":"creating a Clinical note","file_path":"./test/system/clinical_notes_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/clinical_notes_test.rb","line_number":13,"klass":"ClinicalNotesTest","method":"test_creating_a_Clinical_note","id":"./test/system/clinical_notes_test.rb[1:1:2]"},{"description":"updating a Clinical note","full_description":"updating a Clinical note","file_path":"./test/system/clinical_notes_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/clinical_notes_test.rb","line_number":27,"klass":"ClinicalNotesTest","method":"test_updating_a_Clinical_note","id":"./test/system/clinical_notes_test.rb[1:1:3]"},{"description":"destroying a Clinical note","full_description":"destroying a Clinical note","file_path":"./test/system/clinical_notes_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/clinical_notes_test.rb","line_number":41,"klass":"ClinicalNotesTest","method":"test_destroying_a_Clinical_note","id":"./test/system/clinical_notes_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/health_checks_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/health_checks_test.rb","line_number":8,"klass":"HealthChecksTest","method":"test_visiting_the_index","id":"./test/system/health_checks_test.rb[1:1:1]"},{"description":"creating a Health check","full_description":"creating a Health check","file_path":"./test/system/health_checks_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/health_checks_test.rb","line_number":13,"klass":"HealthChecksTest","method":"test_creating_a_Health_check","id":"./test/system/health_checks_test.rb[1:1:2]"},{"description":"updating a Health check","full_description":"updating a Health check","file_path":"./test/system/health_checks_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/health_checks_test.rb","line_number":26,"klass":"HealthChecksTest","method":"test_updating_a_Health_check","id":"./test/system/health_checks_test.rb[1:1:3]"},{"description":"destroying a Health check","full_description":"destroying a Health check","file_path":"./test/system/health_checks_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/health_checks_test.rb","line_number":39,"klass":"HealthChecksTest","method":"test_destroying_a_Health_check","id":"./test/system/health_checks_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/medicines_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/medicines_test.rb","line_number":8,"klass":"MedicinesTest","method":"test_visiting_the_index","id":"./test/system/medicines_test.rb[1:1:1]"},{"description":"creating a Medicine","full_description":"creating a Medicine","file_path":"./test/system/medicines_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/medicines_test.rb","line_number":13,"klass":"MedicinesTest","method":"test_creating_a_Medicine","id":"./test/system/medicines_test.rb[1:1:2]"},{"description":"updating a Medicine","full_description":"updating a Medicine","file_path":"./test/system/medicines_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/medicines_test.rb","line_number":29,"klass":"MedicinesTest","method":"test_updating_a_Medicine","id":"./test/system/medicines_test.rb[1:1:3]"},{"description":"destroying a Medicine","full_description":"destroying a Medicine","file_path":"./test/system/medicines_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/medicines_test.rb","line_number":45,"klass":"MedicinesTest","method":"test_destroying_a_Medicine","id":"./test/system/medicines_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/organizations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/organizations_test.rb","line_number":8,"klass":"OrganizationsTest","method":"test_visiting_the_index","id":"./test/system/organizations_test.rb[1:1:1]"},{"description":"creating a Organization","full_description":"creating a Organization","file_path":"./test/system/organizations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/organizations_test.rb","line_number":13,"klass":"OrganizationsTest","method":"test_creating_a_Organization","id":"./test/system/organizations_test.rb[1:1:2]"},{"description":"updating a Organization","full_description":"updating a Organization","file_path":"./test/system/organizations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/organizations_test.rb","line_number":26,"klass":"OrganizationsTest","method":"test_updating_a_Organization","id":"./test/system/organizations_test.rb[1:1:3]"},{"description":"destroying a Organization","full_description":"destroying a Organization","file_path":"./test/system/organizations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/organizations_test.rb","line_number":39,"klass":"OrganizationsTest","method":"test_destroying_a_Organization","id":"./test/system/organizations_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/residents_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/residents_test.rb","line_number":8,"klass":"ResidentsTest","method":"test_visiting_the_index","id":"./test/system/residents_test.rb[1:1:1]"},{"description":"creating a Resident","full_description":"creating a Resident","file_path":"./test/system/residents_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/residents_test.rb","line_number":13,"klass":"ResidentsTest","method":"test_creating_a_Resident","id":"./test/system/residents_test.rb[1:1:2]"},{"description":"updating a Resident","full_description":"updating a Resident","file_path":"./test/system/residents_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/residents_test.rb","line_number":29,"klass":"ResidentsTest","method":"test_updating_a_Resident","id":"./test/system/residents_test.rb[1:1:3]"},{"description":"destroying a Resident","full_description":"destroying a Resident","file_path":"./test/system/residents_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/residents_test.rb","line_number":45,"klass":"ResidentsTest","method":"test_destroying_a_Resident","id":"./test/system/residents_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/treatments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/treatments_test.rb","line_number":8,"klass":"TreatmentsTest","method":"test_visiting_the_index","id":"./test/system/treatments_test.rb[1:1:1]"},{"description":"creating a Treatment","full_description":"creating a Treatment","file_path":"./test/system/treatments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/treatments_test.rb","line_number":13,"klass":"TreatmentsTest","method":"test_creating_a_Treatment","id":"./test/system/treatments_test.rb[1:1:2]"},{"description":"updating a Treatment","full_description":"updating a Treatment","file_path":"./test/system/treatments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/treatments_test.rb","line_number":27,"klass":"TreatmentsTest","method":"test_updating_a_Treatment","id":"./test/system/treatments_test.rb[1:1:3]"},{"description":"destroying a Treatment","full_description":"destroying a Treatment","file_path":"./test/system/treatments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/treatments_test.rb","line_number":41,"klass":"TreatmentsTest","method":"test_destroying_a_Treatment","id":"./test/system/treatments_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/vaccinations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/vaccinations_test.rb","line_number":8,"klass":"VaccinationsTest","method":"test_visiting_the_index","id":"./test/system/vaccinations_test.rb[1:1:1]"},{"description":"creating a Vaccination","full_description":"creating a Vaccination","file_path":"./test/system/vaccinations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/vaccinations_test.rb","line_number":13,"klass":"VaccinationsTest","method":"test_creating_a_Vaccination","id":"./test/system/vaccinations_test.rb[1:1:2]"},{"description":"updating a Vaccination","full_description":"updating a Vaccination","file_path":"./test/system/vaccinations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/vaccinations_test.rb","line_number":26,"klass":"VaccinationsTest","method":"test_updating_a_Vaccination","id":"./test/system/vaccinations_test.rb[1:1:3]"},{"description":"destroying a Vaccination","full_description":"destroying a Vaccination","file_path":"./test/system/vaccinations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/vaccinations_test.rb","line_number":39,"klass":"VaccinationsTest","method":"test_destroying_a_Vaccination","id":"./test/system/vaccinations_test.rb[1:1:4]"}]}END_OF_TEST_JSON
[2019-07-10 17:35:53.869] [DEBUG] Parsing the below JSON:
[2019-07-10 17:35:53.869] [DEBUG] {"version":"5.11.3","examples":[{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":8,"klass":"AilmentsControllerTest","method":"test_should_get_index","id":"./test/controllers/ailments_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":13,"klass":"AilmentsControllerTest","method":"test_should_get_new","id":"./test/controllers/ailments_controller_test.rb[1:1:2]"},{"description":"should create ailment","full_description":"should create ailment","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":18,"klass":"AilmentsControllerTest","method":"test_should_create_ailment","id":"./test/controllers/ailments_controller_test.rb[1:1:3]"},{"description":"should show ailment","full_description":"should show ailment","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":26,"klass":"AilmentsControllerTest","method":"test_should_show_ailment","id":"./test/controllers/ailments_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":31,"klass":"AilmentsControllerTest","method":"test_should_get_edit","id":"./test/controllers/ailments_controller_test.rb[1:1:5]"},{"description":"should update ailment","full_description":"should update ailment","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":36,"klass":"AilmentsControllerTest","method":"test_should_update_ailment","id":"./test/controllers/ailments_controller_test.rb[1:1:6]"},{"description":"should destroy ailment","full_description":"should destroy ailment","file_path":"./test/controllers/ailments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/ailments_controller_test.rb","line_number":41,"klass":"AilmentsControllerTest","method":"test_should_destroy_ailment","id":"./test/controllers/ailments_controller_test.rb[1:1:7]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":8,"klass":"ClinicalNotesControllerTest","method":"test_should_get_index","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":13,"klass":"ClinicalNotesControllerTest","method":"test_should_get_new","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:2]"},{"description":"should create clinical note","full_description":"should create clinical note","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":18,"klass":"ClinicalNotesControllerTest","method":"test_should_create_clinical_note","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:3]"},{"description":"should show clinical note","full_description":"should show clinical note","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":26,"klass":"ClinicalNotesControllerTest","method":"test_should_show_clinical_note","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":31,"klass":"ClinicalNotesControllerTest","method":"test_should_get_edit","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:5]"},{"description":"should update clinical note","full_description":"should update clinical note","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":36,"klass":"ClinicalNotesControllerTest","method":"test_should_update_clinical_note","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:6]"},{"description":"should destroy clinical note","full_description":"should destroy clinical note","file_path":"./test/controllers/clinical_notes_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/clinical_notes_controller_test.rb","line_number":41,"klass":"ClinicalNotesControllerTest","method":"test_should_destroy_clinical_note","id":"./test/controllers/clinical_notes_controller_test.rb[1:1:7]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/health_checks_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/health_checks_controller_test.rb","line_number":10,"klass":"HealthChecksControllerTest","method":"test_should_get_new","id":"./test/controllers/health_checks_controller_test.rb[1:1:1]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":8,"klass":"MedicinesControllerTest","method":"test_should_get_index","id":"./test/controllers/medicines_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":13,"klass":"MedicinesControllerTest","method":"test_should_get_new","id":"./test/controllers/medicines_controller_test.rb[1:1:2]"},{"description":"should create medicine","full_description":"should create medicine","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":18,"klass":"MedicinesControllerTest","method":"test_should_create_medicine","id":"./test/controllers/medicines_controller_test.rb[1:1:3]"},{"description":"should show medicine","full_description":"should show medicine","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":26,"klass":"MedicinesControllerTest","method":"test_should_show_medicine","id":"./test/controllers/medicines_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":31,"klass":"MedicinesControllerTest","method":"test_should_get_edit","id":"./test/controllers/medicines_controller_test.rb[1:1:5]"},{"description":"should update medicine","full_description":"should update medicine","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":36,"klass":"MedicinesControllerTest","method":"test_should_update_medicine","id":"./test/controllers/medicines_controller_test.rb[1:1:6]"},{"description":"should destroy medicine","full_description":"should destroy medicine","file_path":"./test/controllers/medicines_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/medicines_controller_test.rb","line_number":41,"klass":"MedicinesControllerTest","method":"test_should_destroy_medicine","id":"./test/controllers/medicines_controller_test.rb[1:1:7]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":10,"klass":"OrganizationsControllerTest","method":"test_should_get_index","id":"./test/controllers/organizations_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":15,"klass":"OrganizationsControllerTest","method":"test_should_get_new","id":"./test/controllers/organizations_controller_test.rb[1:1:2]"},{"description":"should create organization","full_description":"should create organization","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":20,"klass":"OrganizationsControllerTest","method":"test_should_create_organization","id":"./test/controllers/organizations_controller_test.rb[1:1:3]"},{"description":"should show organization","full_description":"should show organization","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":28,"klass":"OrganizationsControllerTest","method":"test_should_show_organization","id":"./test/controllers/organizations_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":33,"klass":"OrganizationsControllerTest","method":"test_should_get_edit","id":"./test/controllers/organizations_controller_test.rb[1:1:5]"},{"description":"should update organization","full_description":"should update organization","file_path":"./test/controllers/organizations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/organizations_controller_test.rb","line_number":38,"klass":"OrganizationsControllerTest","method":"test_should_update_organization","id":"./test/controllers/organizations_controller_test.rb[1:1:6]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":10,"klass":"ResidentsControllerTest","method":"test_should_get_index","id":"./test/controllers/residents_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":15,"klass":"ResidentsControllerTest","method":"test_should_get_new","id":"./test/controllers/residents_controller_test.rb[1:1:2]"},{"description":"should create resident","full_description":"should create resident","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":20,"klass":"ResidentsControllerTest","method":"test_should_create_resident","id":"./test/controllers/residents_controller_test.rb[1:1:3]"},{"description":"should show resident","full_description":"should show resident","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":28,"klass":"ResidentsControllerTest","method":"test_should_show_resident","id":"./test/controllers/residents_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":33,"klass":"ResidentsControllerTest","method":"test_should_get_edit","id":"./test/controllers/residents_controller_test.rb[1:1:5]"},{"description":"should update resident","full_description":"should update resident","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":38,"klass":"ResidentsControllerTest","method":"test_should_update_resident","id":"./test/controllers/residents_controller_test.rb[1:1:6]"},{"description":"should destroy resident","full_description":"should destroy resident","file_path":"./test/controllers/residents_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/residents_controller_test.rb","line_number":43,"klass":"ResidentsControllerTest","method":"test_should_destroy_resident","id":"./test/controllers/residents_controller_test.rb[1:1:7]"},{"description":"should get index","full_description":"should get index","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":8,"klass":"TreatmentsControllerTest","method":"test_should_get_index","id":"./test/controllers/treatments_controller_test.rb[1:1:1]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":13,"klass":"TreatmentsControllerTest","method":"test_should_get_new","id":"./test/controllers/treatments_controller_test.rb[1:1:2]"},{"description":"should create treatment","full_description":"should create treatment","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":18,"klass":"TreatmentsControllerTest","method":"test_should_create_treatment","id":"./test/controllers/treatments_controller_test.rb[1:1:3]"},{"description":"should show treatment","full_description":"should show treatment","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":26,"klass":"TreatmentsControllerTest","method":"test_should_show_treatment","id":"./test/controllers/treatments_controller_test.rb[1:1:4]"},{"description":"should get edit","full_description":"should get edit","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":31,"klass":"TreatmentsControllerTest","method":"test_should_get_edit","id":"./test/controllers/treatments_controller_test.rb[1:1:5]"},{"description":"should update treatment","full_description":"should update treatment","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":36,"klass":"TreatmentsControllerTest","method":"test_should_update_treatment","id":"./test/controllers/treatments_controller_test.rb[1:1:6]"},{"description":"should destroy treatment","full_description":"should destroy treatment","file_path":"./test/controllers/treatments_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/treatments_controller_test.rb","line_number":41,"klass":"TreatmentsControllerTest","method":"test_should_destroy_treatment","id":"./test/controllers/treatments_controller_test.rb[1:1:7]"},{"description":"should get new","full_description":"should get new","file_path":"./test/controllers/vaccinations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/vaccinations_controller_test.rb","line_number":12,"klass":"VaccinationsControllerTest","method":"test_should_get_new","id":"./test/controllers/vaccinations_controller_test.rb[1:1:1]"},{"description":"should create vaccination","full_description":"should create vaccination","file_path":"./test/controllers/vaccinations_controller_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/controllers/vaccinations_controller_test.rb","line_number":17,"klass":"VaccinationsControllerTest","method":"test_should_create_vaccination","id":"./test/controllers/vaccinations_controller_test.rb[1:1:2]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/ailments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/ailments_test.rb","line_number":8,"klass":"AilmentsTest","method":"test_visiting_the_index","id":"./test/system/ailments_test.rb[1:1:1]"},{"description":"creating a Ailment","full_description":"creating a Ailment","file_path":"./test/system/ailments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/ailments_test.rb","line_number":13,"klass":"AilmentsTest","method":"test_creating_a_Ailment","id":"./test/system/ailments_test.rb[1:1:2]"},{"description":"updating a Ailment","full_description":"updating a Ailment","file_path":"./test/system/ailments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/ailments_test.rb","line_number":26,"klass":"AilmentsTest","method":"test_updating_a_Ailment","id":"./test/system/ailments_test.rb[1:1:3]"},{"description":"destroying a Ailment","full_description":"destroying a Ailment","file_path":"./test/system/ailments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/ailments_test.rb","line_number":39,"klass":"AilmentsTest","method":"test_destroying_a_Ailment","id":"./test/system/ailments_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/clinical_notes_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/clinical_notes_test.rb","line_number":8,"klass":"ClinicalNotesTest","method":"test_visiting_the_index","id":"./test/system/clinical_notes_test.rb[1:1:1]"},{"description":"creating a Clinical note","full_description":"creating a Clinical note","file_path":"./test/system/clinical_notes_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/clinical_notes_test.rb","line_number":13,"klass":"ClinicalNotesTest","method":"test_creating_a_Clinical_note","id":"./test/system/clinical_notes_test.rb[1:1:2]"},{"description":"updating a Clinical note","full_description":"updating a Clinical note","file_path":"./test/system/clinical_notes_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/clinical_notes_test.rb","line_number":27,"klass":"ClinicalNotesTest","method":"test_updating_a_Clinical_note","id":"./test/system/clinical_notes_test.rb[1:1:3]"},{"description":"destroying a Clinical note","full_description":"destroying a Clinical note","file_path":"./test/system/clinical_notes_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/clinical_notes_test.rb","line_number":41,"klass":"ClinicalNotesTest","method":"test_destroying_a_Clinical_note","id":"./test/system/clinical_notes_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/health_checks_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/health_checks_test.rb","line_number":8,"klass":"HealthChecksTest","method":"test_visiting_the_index","id":"./test/system/health_checks_test.rb[1:1:1]"},{"description":"creating a Health check","full_description":"creating a Health check","file_path":"./test/system/health_checks_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/health_checks_test.rb","line_number":13,"klass":"HealthChecksTest","method":"test_creating_a_Health_check","id":"./test/system/health_checks_test.rb[1:1:2]"},{"description":"updating a Health check","full_description":"updating a Health check","file_path":"./test/system/health_checks_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/health_checks_test.rb","line_number":26,"klass":"HealthChecksTest","method":"test_updating_a_Health_check","id":"./test/system/health_checks_test.rb[1:1:3]"},{"description":"destroying a Health check","full_description":"destroying a Health check","file_path":"./test/system/health_checks_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/health_checks_test.rb","line_number":39,"klass":"HealthChecksTest","method":"test_destroying_a_Health_check","id":"./test/system/health_checks_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/medicines_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/medicines_test.rb","line_number":8,"klass":"MedicinesTest","method":"test_visiting_the_index","id":"./test/system/medicines_test.rb[1:1:1]"},{"description":"creating a Medicine","full_description":"creating a Medicine","file_path":"./test/system/medicines_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/medicines_test.rb","line_number":13,"klass":"MedicinesTest","method":"test_creating_a_Medicine","id":"./test/system/medicines_test.rb[1:1:2]"},{"description":"updating a Medicine","full_description":"updating a Medicine","file_path":"./test/system/medicines_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/medicines_test.rb","line_number":29,"klass":"MedicinesTest","method":"test_updating_a_Medicine","id":"./test/system/medicines_test.rb[1:1:3]"},{"description":"destroying a Medicine","full_description":"destroying a Medicine","file_path":"./test/system/medicines_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/medicines_test.rb","line_number":45,"klass":"MedicinesTest","method":"test_destroying_a_Medicine","id":"./test/system/medicines_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/organizations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/organizations_test.rb","line_number":8,"klass":"OrganizationsTest","method":"test_visiting_the_index","id":"./test/system/organizations_test.rb[1:1:1]"},{"description":"creating a Organization","full_description":"creating a Organization","file_path":"./test/system/organizations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/organizations_test.rb","line_number":13,"klass":"OrganizationsTest","method":"test_creating_a_Organization","id":"./test/system/organizations_test.rb[1:1:2]"},{"description":"updating a Organization","full_description":"updating a Organization","file_path":"./test/system/organizations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/organizations_test.rb","line_number":26,"klass":"OrganizationsTest","method":"test_updating_a_Organization","id":"./test/system/organizations_test.rb[1:1:3]"},{"description":"destroying a Organization","full_description":"destroying a Organization","file_path":"./test/system/organizations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/organizations_test.rb","line_number":39,"klass":"OrganizationsTest","method":"test_destroying_a_Organization","id":"./test/system/organizations_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/residents_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/residents_test.rb","line_number":8,"klass":"ResidentsTest","method":"test_visiting_the_index","id":"./test/system/residents_test.rb[1:1:1]"},{"description":"creating a Resident","full_description":"creating a Resident","file_path":"./test/system/residents_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/residents_test.rb","line_number":13,"klass":"ResidentsTest","method":"test_creating_a_Resident","id":"./test/system/residents_test.rb[1:1:2]"},{"description":"updating a Resident","full_description":"updating a Resident","file_path":"./test/system/residents_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/residents_test.rb","line_number":29,"klass":"ResidentsTest","method":"test_updating_a_Resident","id":"./test/system/residents_test.rb[1:1:3]"},{"description":"destroying a Resident","full_description":"destroying a Resident","file_path":"./test/system/residents_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/residents_test.rb","line_number":45,"klass":"ResidentsTest","method":"test_destroying_a_Resident","id":"./test/system/residents_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/treatments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/treatments_test.rb","line_number":8,"klass":"TreatmentsTest","method":"test_visiting_the_index","id":"./test/system/treatments_test.rb[1:1:1]"},{"description":"creating a Treatment","full_description":"creating a Treatment","file_path":"./test/system/treatments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/treatments_test.rb","line_number":13,"klass":"TreatmentsTest","method":"test_creating_a_Treatment","id":"./test/system/treatments_test.rb[1:1:2]"},{"description":"updating a Treatment","full_description":"updating a Treatment","file_path":"./test/system/treatments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/treatments_test.rb","line_number":27,"klass":"TreatmentsTest","method":"test_updating_a_Treatment","id":"./test/system/treatments_test.rb[1:1:3]"},{"description":"destroying a Treatment","full_description":"destroying a Treatment","file_path":"./test/system/treatments_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/treatments_test.rb","line_number":41,"klass":"TreatmentsTest","method":"test_destroying_a_Treatment","id":"./test/system/treatments_test.rb[1:1:4]"},{"description":"visiting the index","full_description":"visiting the index","file_path":"./test/system/vaccinations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/vaccinations_test.rb","line_number":8,"klass":"VaccinationsTest","method":"test_visiting_the_index","id":"./test/system/vaccinations_test.rb[1:1:1]"},{"description":"creating a Vaccination","full_description":"creating a Vaccination","file_path":"./test/system/vaccinations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/vaccinations_test.rb","line_number":13,"klass":"VaccinationsTest","method":"test_creating_a_Vaccination","id":"./test/system/vaccinations_test.rb[1:1:2]"},{"description":"updating a Vaccination","full_description":"updating a Vaccination","file_path":"./test/system/vaccinations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/vaccinations_test.rb","line_number":26,"klass":"VaccinationsTest","method":"test_updating_a_Vaccination","id":"./test/system/vaccinations_test.rb[1:1:3]"},{"description":"destroying a Vaccination","full_description":"destroying a Vaccination","file_path":"./test/system/vaccinations_test.rb","full_path":"/mnt/c/Users/curre/Code/haven/test/system/vaccinations_test.rb","line_number":39,"klass":"VaccinationsTest","method":"test_destroying_a_Vaccination","id":"./test/system/vaccinations_test.rb[1:1:4]"}]}
[2019-07-10 17:35:57.168] [INFO] Running Ruby tests ["./test/controllers/health_checks_controller_test.rb[1:1:1]"]
[2019-07-10 17:35:57.169] [INFO] Running single test: /mnt/c/Users/curre/Code/haven/test/controllers/health_checks_controller_test.rb:10
[2019-07-10 17:35:57.169] [INFO] Running command: bundle exec rake -R $EXT_DIR vscode:minitest:run test/controllers/health_checks_controller_test.rb:10
[2019-07-10 17:35:59.328] [DEBUG] [CHILD PROCESS OUTPUT] START_OF_TEST_JSON{"version":"5.11.3","summary":{"duration":0.37,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"Total time: 0.37, Runs: 0, Assertions: 0, Failures: 0, Errors: 0, Skips: 0","examples":[]}END_OF_TEST_JSON
[2019-07-10 17:35:59.328] [DEBUG] Parsing the below JSON:
[2019-07-10 17:35:59.328] [DEBUG] {"version":"5.11.3","summary":{"duration":0.37,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"Total time: 0.37, Runs: 0, Assertions: 0, Failures: 0, Errors: 0, Skips: 0","examples":[]}
[2019-07-10 17:35:59.328] [DEBUG] Handling status of test: undefined
[2019-07-10 17:35:59.335] [INFO] Child process has exited. Sending test run finish event.
[2019-07-10 17:36:01.020] [INFO] Running Ruby tests ["./test/controllers/health_checks_controller_test.rb"]
[2019-07-10 17:36:01.021] [INFO] Running test file: /mnt/c/Users/curre/Code/haven/test/controllers/health_checks_controller_test.rb
[2019-07-10 17:36:01.022] [INFO] Running command: bundle exec rake -R $EXT_DIR vscode:minitest:run test/controllers/health_checks_controller_test.rb
[2019-07-10 17:36:03.226] [DEBUG] [CHILD PROCESS OUTPUT] START_OF_TEST_JSON{"version":"5.11.3","summary":{"duration":0.4,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"Total time: 0.4, Runs: 0, Assertions: 0, Failures: 0, Errors: 0, Skips: 0","examples":[]}END_OF_TEST_JSON
[2019-07-10 17:36:03.226] [DEBUG] Parsing the below JSON:
[2019-07-10 17:36:03.226] [DEBUG] {"version":"5.11.3","summary":{"duration":0.4,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"Total time: 0.4, Runs: 0, Assertions: 0, Failures: 0, Errors: 0, Skips: 0","examples":[]}
[2019-07-10 17:36:03.243] [INFO] Child process has exited. Sending test run finish event.
[2019-07-10 17:36:07.469] [INFO] Running Ruby tests ["root"]
[2019-07-10 17:36:07.470] [INFO] Running full test suite.
[2019-07-10 17:36:07.470] [INFO] Running command: bundle exec rake -R $EXT_DIR vscode:minitest:run
[2019-07-10 17:36:09.686] [DEBUG] [CHILD PROCESS OUTPUT] START_OF_TEST_JSON{"version":"5.11.3","summary":{"duration":0.38,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"Total time: 0.38, Runs: 0, Assertions: 0, Failures: 0, Errors: 0, Skips: 0","examples":[]}END_OF_TEST_JSON
[2019-07-10 17:36:09.686] [DEBUG] Parsing the below JSON:
[2019-07-10 17:36:09.686] [DEBUG] {"version":"5.11.3","summary":{"duration":0.38,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"Total time: 0.38, Runs: 0, Assertions: 0, Failures: 0, Errors: 0, Skips: 0","examples":[]}
[2019-07-10 17:36:09.693] [INFO] Child process has exited. Sending test run finish event.
Health Check Controller
- See image above. I made it really dumbed down to remove variables
Rake Task
curreta@RED:haven(master)$ bundle exec rake vscode:minitest:run test/controllers/health_checks_controller_test.rb
START_OF_TEST_JSON{"version":"5.11.3","summary":{"duration":7.45,"example_count":0,"failure_count":0,"pending_count":0,"errors_outside_of_examples_count":0},"summary_line":"Total time: 7.45, Runs: 0, Assertions: 0, Failures: 0, Errors: 0, Skips: 0","examples":[]}END_OF_TEST_JSON
I also stopped the process right at this line and runnables contains:
curreta@RED:haven(master)$ bundle exec rake vscode:minitest:run test/controllers/health_checks_controller_test.rb
[35, 44] in /mnt/c/Users/curre/Code/haven/lib/tasks/vscode/minitest/runner.rb
35: end
36:
37: def run
38: runnables.each do |runnable, options|
39: byebug
=> 40: runnable.run(reporter, options)
41: end
42: end
43:
44: private
(byebug) ap runnables
[
[0] [
[0] HealthChecksControllerTest < ActionDispatch::IntegrationTest,
[1] {}
]
]
nil
(byebug) ```
Same here: Windows, Visual Studio Code with ssh remote host to a real linux machine instead of wsl.
For what I was able to observe, the code calls runnable.run expecting the test to run.
Looking at the minitest run method, I see a call to parallel_processor.start and shutdown.
So my early conclusion is that the test are not run at all.
A fix that makes it work is by modifying in minitest the run_one_method
method, everything works as expected.
with_info_handler reporter do
filtered_methods.each do |method_name|
reporter.record ::Minitest.run_one_method self, method_name
end
end
[...]
with_info_handler reporter do
filtered_methods.each do |method_name|
+++ reporter.record ::Minitest.run_one_method self, method_name
end
end
end
Right now I am going to see if I can make it work without changing minitest.
I have the same problem as well. If I change the minitest code from @guillermo's comment, it starts to work
I'm facing the same issue with minitest 5.13. Can't apply @guillermo 's hotfix.
EDIT: I can confirm @guillermo hotfix works on 5.13 too. Here's the change:
# minitest.rb:324,329
with_info_handler reporter do
filtered_methods.each do |method_name|
# run_one_method self, method_name, reporter
reporter.record Minitest.run_one_method(self, method_name)
end
end
Possibly fixed by #34 Please try it out.
Possibly fixed by #34 Please try it out.
@baelter sorry, I tried your branch and it didn't work. I have the exact same problem. The fix by @guillermo still works, though.
@baelter @connorshea I've put together a fix by monkey-patching Minitest::Runnable.run
method via Module.prepend
, so that the fix by @guillermo gets added to Minitest. I tried this on minitest 5.13.0 and it's working. It's not a viable long-term solution, of course, but it allows using the plugin without forcing the user to patch minitest. I think we should ask some minitest maintainer about how to fix this definitely. My fix is here: https://github.com/metalelf0/vscode-ruby-test-adapter/commit/bd9a24f04631780a21b9304bf5083e46e3d2cf85, let me know what do you think.
I added a helper in my project with @metalelf0 code and I confirm it fixes the issue.
@curreta - Does it work if you open your test_helper.rb and modify
parallelize(workers: :number_of_processors)
to
parallelize(workers: 1)
?
parallelize(workers: :number_of_processors)
toparallelize(workers: 1)
?
This worked for me. Parallel tests results aren't working.
I bumped into this problem and @alexandrubisa parallelize(workers: 1)
worked for me; but I didn't want to edit my test_helper.rb
just to make a VS Code extension work...so after some digging I discovered that you can pass the PARALLEL_WORKERS
variable to the rake
command that runs minitest. Here's a snippet from my workspace settings
{
"folders": [
{
"path": "."
}
],
settings: {
// ...
"rubyTestExplorer.minitestCommand": "PARALLEL_WORKERS=1 ./bin/rake",
}
}
Hopefully this helps others!
I was having a similar problem with this.
I am using a Windows machine with an SSH remote connection to a VM.
I've just updated minitest
to 5.14.1
and it is all working again.
@christopherchild interesting, what version of minitest were you on before that?
@connorshea I was on 5.10.3
. I had a quick look at the commits to minitest but nothing stood out.
I updated to 5.14.1 in a clean install and does not work for me.
Forcing it to not run in parallel like @nadnoslen suggested worked for me.
I bumped into this problem and @alexandrubisa
parallelize(workers: 1)
worked for me; but I didn't want to edit mytest_helper.rb
just to make a VS Code extension work...so after some digging I discovered that you can pass thePARALLEL_WORKERS
variable to therake
command that runs minitest. Here's a snippet from my workspace settings{ "folders": [ { "path": "." } ], settings: { // ... "rubyTestExplorer.minitestCommand": "PARALLEL_WORKERS=1 ./bin/rake", } }
Hopefully this helps others!
Only works for me for running the tests, not when running it in debug mode.
I have the same issue as @Juice10 It works for me running the tests but not when running in debug mode.
To workaround this, I created a custom lunch configuration that I can run to debug:
{
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceRoot}",
"name": "Minitest - Run at cursor position",
"type": "Ruby",
"request": "launch",
"program": "${workspaceRoot}/bin/rails",
"env": {
"PARALLEL_WORKERS": "1"
},
"args": [
"test",
"${file}:${lineNumber}"
]
},
]
}
where I set the PARALLEL_WORKERS to 1.
I bumped into this problem and @alexandrubisa
parallelize(workers: 1)
worked for me; but I didn't want to edit mytest_helper.rb
just to make a VS Code extension work...so after some digging I discovered that you can pass thePARALLEL_WORKERS
variable to therake
command that runs minitest. Here's a snippet from my workspace settings{ "folders": [ { "path": "." } ], settings: { // ... "rubyTestExplorer.minitestCommand": "PARALLEL_WORKERS=1 ./bin/rake", } }
Hopefully this helps others!
Only works for me for running the tests, not when running it in debug mode.
@Juice10 I think to make the Ruby Test Explorer to work on debug we need to change directly parallelize(workers: 1)
in the test helper.
I bumped into this problem and @alexandrubisa
parallelize(workers: 1)
worked for me; but I didn't want to edit mytest_helper.rb
just to make a VS Code extension work...so after some digging I discovered that you can pass thePARALLEL_WORKERS
variable to therake
command that runs minitest. Here's a snippet from my workspace settingssettings: { // ... "rubyTestExplorer.minitestCommand": "PARALLEL_WORKERS=1 ./bin/rake", } }
Adding PARALLEL_WORKERS=1 made the tests run and fixed my problem in #81 , but now without running in headless mode from chrome, meaning I get a popup of the browser tearing through each test! Running them with PARALLEL_WORKERS=1 from the command line still retains headless mode.
Not sure what's going on...