I was playing around with this extension, and for the most part, it works great. However, I ran into one issue: it did not use my default shell defined within the command line. This is a problem as I have some environment variables and path info that are not generally accessible to my other bash shells. This resulted in many please set RAILS_MASTER_KEY errors, which are easy to fix. However, it would not be nice to use my default shell when it detected it or others' default shells as this could save a lot of pain with differences in pathing info.
This concept was pulled from Ruby LSP so can't take credit for the code.
[2023-12-19 22:54:55.246] [INFO] Running dry-run of RSpec test suite with the following command: /opt/homebrew/bin/fish -ic "bundle exec rspec --pattern './spec//**{,/*/**}/*_test.rb,./spec//**{,/*/**}/test_*.rb,./spec//**{,/*/**}/*_spec.rb' --require /Users/brandit/apps/vscode-ruby-test-adapter/custom_formatter.rb --format CustomFormatter --order defined --dry-run"
Above is the output it generates when I change the default shell to fishshell. This also works for zsh and bash.
I was playing around with this extension, and for the most part, it works great. However, I ran into one issue: it did not use my default shell defined within the command line. This is a problem as I have some environment variables and path info that are not generally accessible to my other bash shells. This resulted in many please set
RAILS_MASTER_KEY
errors, which are easy to fix. However, it would not be nice to use my default shell when it detected it or others' default shells as this could save a lot of pain with differences in pathing info.This concept was pulled from Ruby LSP so can't take credit for the code.
Above is the output it generates when I change the default shell to fishshell. This also works for zsh and bash.
Some screenshots showing it working for rspec.![Screenshot 2023-12-19 at 3 19 34 PM](https://github.com/connorshea/vscode-ruby-test-adapter/assets/13140/bba6026f-45e4-425f-92da-b6186ea3b59d)