-
Notifications
You must be signed in to change notification settings - Fork 0
Flicking when running all tests #3
Comments
Hi and thanks for your bug report.
What is happening looks to me like that the extension is adding new tests to the Test Explorer, but somehow 'forgetting' (overwriting?) about already existing ones. Some kind of race condition when adding nodes to the tree. It should look like in the first GIF on the README: the icons of all to be executed tests to change to that rotating indicator and changing to the test state icon (passed or failed) afterwards. Btw. the long running test
Yes I know about the lock (I 'work around' that by retrying to run dune until it succeeds locking - which doesn't work with Dune in watch mode), but didn't know about RPC. As soon as |
OK, found the problem: that is just me deleting the wrong groups when there are more than one inline test runners. That should be a fast fix. |
We are planning to make all Dune processes connect to an existing rpc server if one is running eventually. You can track the progress of that here: ocaml/dune#7308 |
Also one more subtle thing which is really only a problem for the Dune repo, is that we aren't using |
I could add a configuration option to use a special path to dune instead of the one in the path of Btw. got it working with my fix now, just by getting two long running tests out of their way. I've got 5 failing test (of 365 tests in total without runners I couldn't build or deleted) is that OK? But I cannot compile all tests by calling
And some deprecated functions on MacOS |
Version 0.4.0 fixes the problem. But the mapping of tests from the sources to the inline test runners does not work reliably, so you should let |
And a remark: As I've just found the -list-test-names argument (I' making a PR to add this and other useful arguments to the PPX Inline Test README) there is a new version on its way, that no longer needs to run all tests to get the list of tests, so discovery should be much faster (like for Alcotest) |
Excellent working really well! I like this extension a lot. Have you reached out to the ocaml platform folks? I think this would be a nice addition. |
Great to hear! |
Hi,
Running the tests in the dune repo for example doesn't quite work:
Screencast.from.2023-03-18.23-24-16.webm
There appears to be a lot of flickering and it isn't obvious what is actually happening.
For reference, I have the OCaml platform extension also installed.
It would be nice if this extension used dune rpc also so that it can connect to a dune already in watch mode. At the moment, Dune disallows multiple dune processes in the same project due to one of them acquiring a lock.
The text was updated successfully, but these errors were encountered: