Skip to content

Commit d84ce96

Browse files
committed
chore: Added For Testing
1 parent dfbffea commit d84ce96

File tree

7 files changed

+230
-0
lines changed

7 files changed

+230
-0
lines changed

.github/workflows/php83.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build PHP 8.3
2+
3+
on:
4+
push:
5+
branches: [ main, dev ]
6+
pull_request:
7+
branches: [ main, dev ]
8+
env:
9+
OPERATING_SYS: ubuntu-latest
10+
PHP_VERSION: 8.3
11+
jobs:
12+
13+
test:
14+
name: Run Tests
15+
uses: WebFiori/workflows/.github/workflows/test-php.yaml@main
16+
with:
17+
php-version: '8.3'
18+
phpunit-config: 'tests/phpunit10.xml'
19+
20+
21+
release-prod:
22+
name: Prepare Production Release Branch / Publish Release
23+
needs: [test]
24+
uses: WebFiori/workflows/.github/workflows/release-php.yaml@main
25+
with:
26+
branch: 'main'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
vendor
66
nbproject
77
*.Identifier
8+
/tests/.phpunit.cache

release-please-config.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"include-v-in-tag":true,
4+
"tag-separator": "-",
5+
"changelog-path": "CHANGELOG.md",
6+
"changelog-sections": [
7+
{ "type": "feat", "section": "Features" },
8+
{ "type": "feature", "section": "Features" },
9+
{ "type": "fix", "section": "Bug Fixes" },
10+
{ "type": "perf", "section": "Performance Improvements" },
11+
{ "type": "revert", "section": "Reverts" },
12+
{ "type": "docs", "section": "Documentation" },
13+
{ "type": "style", "section": "Styles" },
14+
{ "type": "chore", "section": "Miscellaneous Chores" },
15+
{ "type": "refactor", "section": "Code Refactoring" },
16+
{ "type": "test", "section": "Testing" },
17+
{ "type": "build", "section": "Build System" },
18+
{ "type": "ci", "section": "Continuous Integration" },
19+
{ "type": "ui", "section": "User Interface" },
20+
{ "type": "database", "section": "Database Changes" },
21+
{ "type": "email", "section": "Email Notifications Changes" }
22+
]
23+
}

tests/bootstrap.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
use WebFiori\Framework\App;
4+
5+
ini_set('display_startup_errors', 1);
6+
ini_set('display_errors', 1);
7+
error_reporting(-1);
8+
9+
$DS = DIRECTORY_SEPARATOR;
10+
$testsDirName = 'tests';
11+
$rootDir = substr(__DIR__, 0, strlen(__DIR__) - strlen($testsDirName));
12+
13+
define('ROOT_PATH', $rootDir);
14+
define('DS', $DS);
15+
define ('APP_DIR', 'App');
16+
define('APP_PATH', ROOT_PATH .DS. APP_DIR . $DS);
17+
require_once __DIR__ . $DS . '..' . $DS . 'vendor' . $DS . 'autoload.php';
18+
fprintf(STDOUT, "Running tests...\n");

tests/clover.xml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<coverage generated="1760200313">
3+
<project timestamp="1760200313">
4+
<file name="/home/ibrahim/vuetifyCore/tests/Themes/VuetifyCore/CreateVuetifyThemeTest.php">
5+
<class name="webfiori\framework\test\cli\CreateVuetifyThemeTest" namespace="global">
6+
<metrics complexity="16" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="106" coveredstatements="105" elements="112" coveredelements="110"/>
7+
</class>
8+
<line num="11" type="method" name="test00" visibility="public" complexity="2" crap="2" count="1"/>
9+
<line num="12" type="stmt" count="1"/>
10+
<line num="13" type="stmt" count="1"/>
11+
<line num="14" type="stmt" count="1"/>
12+
<line num="17" type="stmt" count="1"/>
13+
<line num="19" type="stmt" count="1"/>
14+
<line num="20" type="stmt" count="1"/>
15+
<line num="21" type="stmt" count="1"/>
16+
<line num="22" type="stmt" count="1"/>
17+
<line num="23" type="stmt" count="1"/>
18+
<line num="24" type="stmt" count="1"/>
19+
<line num="25" type="stmt" count="1"/>
20+
<line num="26" type="stmt" count="1"/>
21+
<line num="27" type="stmt" count="1"/>
22+
<line num="28" type="stmt" count="1"/>
23+
<line num="29" type="stmt" count="1"/>
24+
<line num="30" type="stmt" count="1"/>
25+
<line num="31" type="stmt" count="1"/>
26+
<line num="32" type="stmt" count="1"/>
27+
<line num="33" type="stmt" count="1"/>
28+
<line num="34" type="stmt" count="1"/>
29+
<line num="35" type="stmt" count="1"/>
30+
<line num="38" type="stmt" count="1"/>
31+
<line num="39" type="stmt" count="1"/>
32+
<line num="40" type="stmt" count="1"/>
33+
<line num="41" type="stmt" count="1"/>
34+
<line num="42" type="stmt" count="1"/>
35+
<line num="43" type="stmt" count="1"/>
36+
<line num="44" type="stmt" count="1"/>
37+
<line num="46" type="stmt" count="1"/>
38+
<line num="47" type="stmt" count="1"/>
39+
<line num="48" type="stmt" count="1"/>
40+
<line num="49" type="stmt" count="1"/>
41+
<line num="50" type="stmt" count="1"/>
42+
<line num="60" type="method" name="testExtendedToolbar" visibility="public" complexity="2" crap="2" count="1"/>
43+
<line num="61" type="stmt" count="1"/>
44+
<line num="62" type="stmt" count="1"/>
45+
<line num="63" type="stmt" count="1"/>
46+
<line num="65" type="stmt" count="1"/>
47+
<line num="67" type="stmt" count="1"/>
48+
<line num="68" type="stmt" count="1"/>
49+
<line num="69" type="stmt" count="1"/>
50+
<line num="70" type="stmt" count="1"/>
51+
<line num="71" type="stmt" count="1"/>
52+
<line num="73" type="stmt" count="1"/>
53+
<line num="75" type="stmt" count="1"/>
54+
<line num="76" type="stmt" count="1"/>
55+
<line num="77" type="stmt" count="1"/>
56+
<line num="78" type="stmt" count="1"/>
57+
<line num="79" type="stmt" count="1"/>
58+
<line num="82" type="stmt" count="1"/>
59+
<line num="88" type="method" name="testSystemBar" visibility="public" complexity="2" crap="2" count="1"/>
60+
<line num="89" type="stmt" count="1"/>
61+
<line num="90" type="stmt" count="1"/>
62+
<line num="91" type="stmt" count="1"/>
63+
<line num="93" type="stmt" count="1"/>
64+
<line num="95" type="stmt" count="1"/>
65+
<line num="96" type="stmt" count="1"/>
66+
<line num="97" type="stmt" count="1"/>
67+
<line num="98" type="stmt" count="1"/>
68+
<line num="99" type="stmt" count="1"/>
69+
<line num="101" type="stmt" count="1"/>
70+
<line num="103" type="stmt" count="1"/>
71+
<line num="104" type="stmt" count="1"/>
72+
<line num="105" type="stmt" count="1"/>
73+
<line num="106" type="stmt" count="1"/>
74+
<line num="107" type="stmt" count="1"/>
75+
<line num="110" type="stmt" count="1"/>
76+
<line num="116" type="method" name="testInbox" visibility="public" complexity="2" crap="2" count="1"/>
77+
<line num="117" type="stmt" count="1"/>
78+
<line num="118" type="stmt" count="1"/>
79+
<line num="119" type="stmt" count="1"/>
80+
<line num="121" type="stmt" count="1"/>
81+
<line num="123" type="stmt" count="1"/>
82+
<line num="124" type="stmt" count="1"/>
83+
<line num="125" type="stmt" count="1"/>
84+
<line num="126" type="stmt" count="1"/>
85+
<line num="127" type="stmt" count="1"/>
86+
<line num="129" type="stmt" count="1"/>
87+
<line num="131" type="stmt" count="1"/>
88+
<line num="132" type="stmt" count="1"/>
89+
<line num="133" type="stmt" count="1"/>
90+
<line num="134" type="stmt" count="1"/>
91+
<line num="135" type="stmt" count="1"/>
92+
<line num="138" type="stmt" count="1"/>
93+
<line num="144" type="method" name="testSideNavigation" visibility="public" complexity="2" crap="2" count="1"/>
94+
<line num="145" type="stmt" count="1"/>
95+
<line num="146" type="stmt" count="1"/>
96+
<line num="147" type="stmt" count="1"/>
97+
<line num="149" type="stmt" count="1"/>
98+
<line num="151" type="stmt" count="1"/>
99+
<line num="152" type="stmt" count="1"/>
100+
<line num="153" type="stmt" count="1"/>
101+
<line num="154" type="stmt" count="1"/>
102+
<line num="155" type="stmt" count="1"/>
103+
<line num="157" type="stmt" count="1"/>
104+
<line num="159" type="stmt" count="1"/>
105+
<line num="160" type="stmt" count="1"/>
106+
<line num="161" type="stmt" count="1"/>
107+
<line num="162" type="stmt" count="1"/>
108+
<line num="163" type="stmt" count="1"/>
109+
<line num="166" type="stmt" count="1"/>
110+
<line num="174" type="method" name="cleanupTestResources" visibility="public" complexity="6" crap="6.05" count="5"/>
111+
<line num="175" type="stmt" count="5"/>
112+
<line num="176" type="stmt" count="4"/>
113+
<line num="177" type="stmt" count="4"/>
114+
<line num="178" type="stmt" count="4"/>
115+
<line num="179" type="stmt" count="4"/>
116+
<line num="182" type="stmt" count="4"/>
117+
<line num="186" type="stmt" count="5"/>
118+
<line num="187" type="stmt" count="5"/>
119+
<line num="188" type="stmt" count="0"/>
120+
<metrics loc="192" ncloc="167" classes="1" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="106" coveredstatements="105" elements="112" coveredelements="110"/>
121+
</file>
122+
<metrics files="1" loc="192" ncloc="167" classes="1" methods="6" coveredmethods="5" conditionals="0" coveredconditionals="0" statements="106" coveredstatements="105" elements="112" coveredelements="110"/>
123+
</project>
124+
</coverage>

tests/phpunit.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
3+
<coverage includeUncoveredFiles="true">
4+
<report>
5+
<clover outputFile="clover.xml"/>
6+
</report>
7+
</coverage>
8+
<php>
9+
</php>
10+
<logging/>
11+
<testsuites>
12+
<testsuite name="VuetifyCore Tests">
13+
</testsuite>
14+
</testsuites>
15+
<source>
16+
<include>
17+
</include>
18+
</source>
19+
</phpunit>

tests/phpunit10.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache">
3+
<coverage includeUncoveredFiles="true">
4+
<report>
5+
<clover outputFile="clover.xml"/>
6+
</report>
7+
</coverage>
8+
<php>
9+
</php>
10+
<logging/>
11+
<testsuites>
12+
<testsuite name="VuetifyCore Tests">
13+
</testsuite>
14+
</testsuites>
15+
<source>
16+
<include>
17+
</include>
18+
</source>
19+
</phpunit>

0 commit comments

Comments
 (0)