Skip to content

Commit

Permalink
slightly better test config runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Jan 21, 2025
1 parent 083593f commit 9d246ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
8 changes: 1 addition & 7 deletions phpunit/Versions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
</php>
<testsuites>
<testsuite name="Versions">
<directory>../output/tests/Tests/DCarbone/PHPFHIRGenerated/Tests/Versions</directory>
<exclude>../output/tests/Tests/DCarbone/PHPFHIRGenerated/Tests/Versions/DSTU1</exclude>
<exclude>../output/tests/Tests/DCarbone/PHPFHIRGenerated/Tests/Versions/DSTU2</exclude>
<exclude>../output/tests/Tests/DCarbone/PHPFHIRGenerated/Tests/Versions/STU3</exclude>
<exclude>../output/tests/Tests/DCarbone/PHPFHIRGenerated/Tests/Versions/R4</exclude>
<exclude>../output/tests/Tests/DCarbone/PHPFHIRGenerated/Tests/Versions/R4B</exclude>
<exclude>../output/tests/Tests/DCarbone/PHPFHIRGenerated/Tests/Versions/R5</exclude>
<directory>../output/tests/Tests/DCarbone/PHPFHIRGenerated/Versions</directory>
</testsuite>
</testsuites>
</phpunit>
13 changes: 7 additions & 6 deletions phpunit/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,16 @@

return array_merge(
require __DIR__ . '/../bin/config.php',
[
'versions' => match (getenv('PHPFHIR_TEST_TARGET')) {
'Core' => [],
default => [
match (getenv('PHPFHIR_TEST_TARGET')) {
'Core' => ['versions' => []],
'Versions' => [],
default => [
'versions' => [
[
'name' => getenv('PHPFHIR_TEST_TARGET'),
'schemaPath' => __DIR__ . '/../input/' . getenv('PHPFHIR_TEST_TARGET'),
],
],
},
]
],
},
);

0 comments on commit 9d246ac

Please sign in to comment.