mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-05 19:05:33 +01:00
Add snapshot tests for Fractal
This commit is contained in:
parent
2186c29246
commit
31ef9b2968
12 changed files with 273 additions and 1 deletions
|
@ -17,6 +17,7 @@ class SnapshotTest extends TestCase
|
|||
'drupal',
|
||||
'drupal-commerce-kickstart',
|
||||
'drupal-localgov',
|
||||
'fractal',
|
||||
];
|
||||
|
||||
public function testCompareFiles(): void
|
||||
|
@ -41,10 +42,12 @@ class SnapshotTest extends TestCase
|
|||
|
||||
private function runCliTool(string $config): void
|
||||
{
|
||||
$configFilePath = getcwd() . "/tests/snapshots/configs/{$config}.yaml";
|
||||
|
||||
$cliCommand = sprintf(
|
||||
"%s app:generate --config-file %s --output-dir %s",
|
||||
getcwd() . '/bin/build-configs',
|
||||
getcwd() . "/tests/snapshots/configs/{$config}.yaml",
|
||||
$configFilePath,
|
||||
getcwd() . "/.ignored/snapshots/output/{$config}",
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue