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
83 stars 50 forks source link

Debug test #51

Closed CezaryGapinski closed 3 years ago

CezaryGapinski commented 4 years ago

This PR is a continuation of @baelter PR #38, after he decided to discontinue usage of this VS Code extension. That really would be a pity to abandon this great feature.

Some minor fixes:

CezaryGapinski commented 4 years ago

Changes after new push:

pooriajr commented 4 years ago

This functionality would be huge for me! Is there a way I can use this now without waiting for it to get merged? Thank you! 🙏

CezaryGapinski commented 4 years ago

@pjrashidi

This functionality would be huge for me! Is there a way I can use this now without waiting for it to get merged? Thank you!

I'm not an expert, but you can try to generate your custom extension. Install nodejs and git.

Run these commands: npm install -g typescript npm install -g vsce git clone https://github.com/CezaryGapinski/vscode-ruby-test-adapter.git cd vscode-ruby-test-adapter npm install tsc vsce package

Go to your vscode, and choose Extensions, click on ellipsis and select "Install from VSIX..." and select generated package.

pooriajr commented 4 years ago

Ah, I tried that and it didn't work, I tried it again following your instructions exactly, still didn't work... my test explorer is just blank

Thanks for trying though :D I guess I'll just have to wait for the official release and try again

image

CezaryGapinski commented 4 years ago

Ok, may I know whether standard extension from Marketplace works perfectly fine for you and it stop working after you run a custom extension?

Maybe there is a bug in this Pull Request, so I would be appreciate to see your log output with enabled rubyTestExplorer.logpanel or rubyTestExplorer.logfile option.

pooriajr commented 4 years ago

Yeah the standard extension works fine. With this PR version, I don't see anything being logged to output: image

I ran a bunch of commands and clicked around trying to get some output, nothing changed

CezaryGapinski commented 4 years ago

You should change Output from "Test Explorer" to "Ruby Test Explorer Log" on the right pane :).

Do you use rspec or minitests? Have you tried to change the file pattern to match your test files? I think it is something new in this PR and can cause a problem for rspec, so maybe you have to add pattern like spec, spec or something else, depend how you named the test files.

pooriajr commented 4 years ago

I'm using minitest, but there was no "Ruby Test Explorer" option for the output pane, I did look for it

On Sun, Jun 21, 2020, 4:39 PM Cezary Gapiński notifications@github.com wrote:

You should change Output from "Test Explorer" to "Ruby Test Explorer Log" on the right pane :).

Do you use rspec or minitests? Have you tried to change the file pattern to match your test files? I think it is something new in this PR and can cause a problem for rspec, so maybe you have to add pattern like spec, spec or something else, depend how you named the test files.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/connorshea/vscode-ruby-test-adapter/pull/51#issuecomment-647091946, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRAD3KDS2DTPLMTI7SUQP3RXW2KDANCNFSM4NOFC2ZQ .

CezaryGapinski commented 4 years ago

I'm using minitest, but there was no "Ruby Test Explorer" option for the output pane, I did look for it

I had the same when tsc compiled this extension with errors/warnings (I do not remember exactly how the error looks like), but I had to update the tsc. You can try to run this extension in debug mode, how it is described in the contributing section.

thomthom commented 4 years ago

I wonder if there's anything we can do to aid in getting this PR merged?

Would it help if it was broken down into separate PRs per fix? If there's part of this that is easier to accept if they where presented in isolation? I'm particularly interested in the EXT_DIR fix for windows, which looks to be a very small part of whole PR.

connorshea commented 3 years ago

I'd appreciate if someone could open a new PR (or PRs) with a few changes after I merge this one:

I won't block this PR on these changes though since none of them are really vital. Thanks so much @CezaryGapinski @baelter, and I'm really sorry it's taken so long to get this functionality merged 🙇

connorshea commented 3 years ago

Published in 0.8.0 🎉