execute tests after successfully compile test project

Issue #148 new
Stephan created an issue

It would be nice to have another option, when the tests should be executed: after the test project is successfully compiled.

I normally have the test project and the project to test in one project group. Now there is often the problem: I like to hit the save button as often as possible, normally always when I finished working on one method or one unit. Now there is often the situation, that the whole project is not compileable at this moment. When testinsight tries to execute the tests at this moment, there is a compile followed by a jump to the error position. This interrupts the workflow.
The Second problem with execute on save is, that Delphi asks, if I like to switch to the test project before execution. This dialog also interrupts the workflow.

So my suggested solution would be, that the execution of the test project is only executed after a successfully compile, because I do a “Build all projects“ when a useful step is done.

Currently I use the version 1.1.9.0 in Delphi 10.3

Comments (3)

  1. Jan Kunkis

    This means a third possibility when to run tests:

    • Run tests continously when idle
    • Run tests when the project is saved
    • Run tests when the project is compiled successfully (new)

  2. Stefan Glienke repo owner

    The switch project dialog you mention is most likely the one from DDevExtensions as to my knowledge the IDE does not have such functionality.

    Executing the test project after compiling can be done via post build event (Project Options → Build Events)

  3. Stephan reporter

    The post build event works.

    But is has the downside, that it has to be done in every project. A solution in the testinsight plugin would not need this.

  4. Log in to comment