phpunit.el icon indicating copy to clipboard operation
phpunit.el copied to clipboard

rerun last test

Open oliverpool opened this issue 4 years ago • 5 comments

Hi, is it possible to re run the test that was previously run?

This is to support my current workflow:

  1. create a test class
  2. let it run (and fail)
  3. switch to the code performing the task and rerun the test without switching the buffers

Since I am very new to emacs, maybe there is a possibility to support this workflow without any development here

oliverpool avatar Mar 24 '21 09:03 oliverpool

@nlamirault do you have interest in this feature? I have implemented it locally (and use it constantly) and I could bundle it up for review if you'd like.

claytonrcarter avatar Jun 21 '22 01:06 claytonrcarter

Sure @claytonrcarter

nlamirault avatar Jun 21 '22 06:06 nlamirault

@oliverpool The standard function of Emacs to realize your workflow is M-x recompile. It may be possible for phpunit.el to enhance the workflow experience in the future.

zonuexe avatar Jul 10 '22 05:07 zonuexe

I can confirm that M-x recompile works perfectly for this.

claytonrcarter avatar Nov 09 '22 15:11 claytonrcarter

I've recently been annoyed by the loss of ANSI coloring in the output when recompiled, and I'm trying to fix it.

I found that adding M-x phpunit-rerun command wasn't too difficult either, so I'm going to implement it at the same time.

zonuexe avatar Nov 09 '22 17:11 zonuexe