File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ /**
4+ * This script is added via `--require` to the WP-CLI commands executed by the Behat test runner.
5+ * It starts coverage collection right away and registers a shutdown hook to complete it
6+ * after the respective WP-CLI command has finished.
7+ */
8+
39use SebastianBergmann \CodeCoverage \CodeCoverage ;
410use SebastianBergmann \CodeCoverage \Driver \Selector ;
511use SebastianBergmann \CodeCoverage \Filter ;
2026 $ filter
2127);
2228
29+ /*
30+ * The names of the current feature and scenario are passed on from the Behat test runner
31+ * to this script through environment variables `BEHAT_FEATURE_TITLE` & `BEHAT_SCENARIO_TITLE`.
32+ */
2333$ feature = getenv ( 'BEHAT_FEATURE_TITLE ' );
2434$ scenario = getenv ( 'BEHAT_SCENARIO_TITLE ' );
2535$ name = "{$ feature } - {$ scenario }" ;
You can’t perform that action at this time.
0 commit comments