Skip to content

Commit 9058013

Browse files
Enhance testing and configuration for Kakao BMS in SOLAPI PHP SDK
- Updated .gitignore to exclude .env and .omc files. - Added new PHPUnit test scripts for unit and end-to-end testing of BMS message types. - Modified composer.json to include additional test scripts for unit, end-to-end, and coverage testing. - Updated phpunit.xml to define separate test suites for Unit and E2E tests. - Introduced a bootstrap file for loading environment variables and Composer autoloading.
1 parent c8bc54a commit 9058013

5 files changed

Lines changed: 639 additions & 5 deletions

File tree

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
.vscode/
3+
.env
34
log.txt
45
out/
56
*.swp
@@ -15,4 +16,7 @@ composer.phar
1516

1617
# PHPUnit
1718
.phpunit.result.cache
18-
.phpunit.cache/
19+
.phpunit.cache/
20+
21+
# omc
22+
.omc/

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
"phpunit/phpunit": "^9.5"
5656
},
5757
"scripts": {
58-
"test": "phpunit"
58+
"test": "phpunit",
59+
"test:unit": "phpunit --testsuite=Unit",
60+
"test:e2e": "phpunit --testsuite=E2E",
61+
"test:coverage": "phpunit --coverage-text"
5962
}
6063
}

phpunit.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
4+
bootstrap="tests/bootstrap.php"
55
colors="true"
66
verbose="true">
77
<testsuites>
8-
<testsuite name="SOLAPI PHP SDK Test Suite">
9-
<directory>tests</directory>
8+
<testsuite name="Unit">
9+
<directory>tests/Models</directory>
10+
</testsuite>
11+
<testsuite name="E2E">
12+
<directory>tests/E2E</directory>
1013
</testsuite>
1114
</testsuites>
1215
<coverage>

0 commit comments

Comments
 (0)