@@ -48,6 +48,7 @@ protected function configure(): void
4848 ->addOption ('auto-rerun ' , null , InputOption::VALUE_REQUIRED , 'Number of times to rerun failures ' , 2 )
4949 ->addOption ('selenium ' , null , InputOption::VALUE_REQUIRED , 'Selenium Docker image ' )
5050 ->addOption ('dump ' , null , InputOption::VALUE_NONE , 'Print contents of Behat failure HTML files ' )
51+ ->addOption ('scss-deprecations ' , null , InputOption::VALUE_NONE , 'Enable SCSS deprecation checks ' )
5152 ->setDescription ('Run Behat on a plugin ' );
5253 }
5354
@@ -72,6 +73,16 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7273
7374 $ servers && $ this ->startServerProcesses ($ input );
7475
76+ if ($ input ->getOption ('scss-deprecations ' )) {
77+ $ enableprocess = new Process ([
78+ 'php ' , 'admin/tool/behat/cli/util_single_run.php ' ,
79+ '--enable ' ,
80+ '--add-core-features-to-theme ' ,
81+ '--scss-deprecations ' ,
82+ ], $ this ->moodle ->directory , null , null , null );
83+ $ this ->execute ->passThroughProcess ($ enableprocess );
84+ }
85+
7586 $ cmd = [
7687 'php ' , 'admin/tool/behat/cli/run.php ' ,
7788 '--profile= ' . $ input ->getOption ('profile ' ),
0 commit comments