-
Notifications
You must be signed in to change notification settings - Fork 4
Adding Support for Test Filtering #23
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
base: develop
Are you sure you want to change the base?
Adding Support for Test Filtering #23
Conversation
dda2a29
to
2fb671b
Compare
Thank you! Could you add You can then run the tests in the CI that require elm-test-rs. |
I'm not sure elm-test-rs is required for the tests I wrote, but there's also probably tests that I missed. |
028f653
to
f7b7f3e
Compare
@ahankinson I'm noticing an issue when I built the plugin and tested it on a different machine with extremely slow loading of the settings. I think it has to do with the auto discovery code, but I wasn't seeing that when I built it and ran it on my dev machine through intellij. |
I checked out your latest code and ran it. It works fine, and I didn't notice any slowdown. I'm on an M1 Macbook Pro. I think the UX could be improved, however. The Would it be possible to auto-detect the test-runner that is specified, and get rid of the checkbox? You can add a little help note that both are supported. Your autodetection could look for the presence of "elm-test-rs" in the output of the
This would also fix the issue that, if you do have something filled out in that field, clicking the checkbox will wipe it out. Would it also be possible to print a message to the console when the testing is done? Right now I see "Testing started at 00:41 ..." but nothing to indicate that it has finished. Other than that, it works well. I even used it to find a bug in core-extra when I was trying to find a test suite to run. |
There's a few things I figured out while testing
I originally did want to autodetect which binary is being used. It was earlier on in the development, but I couldn't figure out how to get the version in part of the code that needed it. I can take another crack at it though, now that I understand the code better. If we do go that route, what should happen when the autodetect button is clicked? The issue you're seeing with the checkbox sounds like it's having trouble locating elm-test-rs. When you check it, it tries to find elm-test or elm-test-rs depending on the state and fill the textbox in with the path. I haven't noticed the testing issue, how are you running the tests? That said, I have noticed that sometimes it seems like the test that walks up to find the nearest test case is running when it's not. I'll make sure and pay attention to what I'm doing when I see that next. I also noticed that at some point using the keyboard shortcut to run a specific test broke, so I'll need to figure out what's happening there as well. |
is |
Any updates on this? |
I have 2 commits I haven't pushed to fix a logic issue an improve performance. The last I worked on it, I was trying to figure out why the tests aren't returning 0 when they run. For what it's worth, it's also happening on main (it's why the tests say they've started and haven't finished). I haven't removed the checkbox for elm-test-rs yet, but I was also thinking it might still be useful to be able to quickly switch between runners. Either way, I haven't gotten to that part yet. |
Thanks! I've just released 5.1.0 to get something out the door in the JetBrains marketplace for the new plugin. You can take the time you need and we'll get this in when you're ready! |
This adds support for filtering tests in various ways
Add file/directory/module support
Add elm-test-rs support