In general, the problem is that I have no time to follow when the test passes and forcing a virtual machine every time. I would like to make sure that the results of the passage came immediately to the post office. How to implement it? Who can give advice?

    2 answers 2

    Write a wrapper script in bash or python with the algorithm:

    1. Running tests, all output is added to a variable.
    2. An email is sent, where the message body is a variable containing test output.

    And run this script instead of tests.

      I use this function for myself

      // Сообщение $message = "Выводи результаты"; // Отправляем mail('Ваш email', 'Тема письма', $message); ?> 

      More details can be found here: http://php.net/manual/ru/function.mail.php

      • Unfortunately, your answer (in its current form) is very poorly applicable in the context of behat (if only because the scripts in behat are not described by php code at all). - Dmitriy Simushev
      • But patching third-party libraries (for example, adding sending a letter to behat itself) is a bad idea. - Dmitriy Simushev