Skip to content

Commit

Permalink
change test plans
Browse files Browse the repository at this point in the history
  • Loading branch information
snehasreeramini committed Feb 7, 2024
1 parent 48737be commit b223b88
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dispatch_module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
type: string
required: true
description: 'URL/PATH of the testplan to run'
default: 'tests/github_actions/defaults/7.0.x.yml,tests/github_actions/twig-component.yml'
default: 'tests/github_actions/defaults/defaults.yml,tests/github_actions/twig-component.yml'
runs_on:
type: string
description: 'JSON string/array describing the runner'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_module_7.0x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
pull_module:
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yml@v3
with:
testplan: 'tests/github_actions/defaults/7.0.x.yml,tests/github_actions/twig-component.yml'
testplan: 'tests/github_actions/defaults/7.0.x.yml,tests/github_actions/twig-component.yml','test/github_actions/defaults/defaults.yml'
runs_on: '["self-hosted", "x64"]'
defaults: 'v3'
secrets:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_module_8.0x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
pull_module:
uses: oxid-eSales/github-actions/.github/workflows/call-universal_test_workflow.yml@v3
with:
testplan: 'tests/github_actions/defaults/8.0.x.yml,tests/github_actions/twig-component.yml'
testplan: 'tests/github_actions/twig-component.yml,test/github_actions/defaults/defaults.yml'
runs_on: '["self-hosted", "x64"]'
defaults: 'v3'
secrets:
Expand Down
38 changes: 38 additions & 0 deletions tests/phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0"?>
<ruleset name="Oxid Coding Standard">
<description>Oxid Coding Standard</description>

<!-- Paths to check -->
<file>../src/</file>
<file>./</file>
<!--
<file>../translations</file>
-->
<file>../migration</file>
<exclude-pattern>./tests/Codeception/Config</exclude-pattern>

<!-- display progress -->
<arg value="p"/>
<arg name="colors"/>
<arg name="extensions" value="php,dist,phtml"/>

<!-- inherit rules from: -->
<rule ref="PSR12"/>

<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
<properties>
<property name="ignoreNewlines" value="true"/>
</properties>
</rule>

<!-- ignore method declaration rules for tests -->
<rule ref="PSR2.Methods.MethodDeclaration">
<exclude-pattern>./</exclude-pattern>
</rule>

<!-- ignore property declaration rules for tests -->
<rule ref="PSR2.Classes.PropertyDeclaration">
<exclude-pattern>./</exclude-pattern>
</rule>
</ruleset>
17 changes: 17 additions & 0 deletions tests/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" beStrictAboutOutputDuringTests="false" cacheDirectory=".phpunit.cache" requireCoverageMetadata="false" beStrictAboutCoverageMetadata="true">
<coverage/>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">tests/Unit</directory>
</testsuite>
<testsuite name="Integration">
<directory suffix="Test.php">tests/Integration</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">../src/</directory>
</include>
</source>
</phpunit>

0 comments on commit b223b88

Please sign in to comment.