37 lines
938 B
Markdown
Executable File
37 lines
938 B
Markdown
Executable File
# CodeIgniter 4 Framework
|
|
|
|
## Unit Testing
|
|
|
|
From command propmt run the following cmds
|
|
|
|
`php vendor/bin/phpunit tests\unit\GridType11PremiumCalculationTest.php`
|
|
|
|
Run speeific method
|
|
|
|
`php vendor/bin/phpunit tests\unit\PremiumCalculationTest.php --filter testPremiumCalculationWithPrimaryRackRateAndAdditionalRackRate`
|
|
|
|
Test Comments
|
|
|
|
## Non-EB Claims API Tests
|
|
|
|
Run all 4 Non-EB API tests at once:
|
|
|
|
`php vendor/bin/phpunit tests\unit\Api`
|
|
|
|
Run a single test file:
|
|
|
|
`php vendor/bin/phpunit tests\unit\Api\CreateClaimTest.php`
|
|
|
|
`php vendor/bin/phpunit tests\unit\Api\ListClaimsTest.php`
|
|
|
|
`php vendor/bin/phpunit tests\unit\Api\ClaimHistoryTest.php`
|
|
|
|
`php vendor/bin/phpunit tests\unit\Api\UploadRequiredDocTest.php`
|
|
|
|
Run a specific test method:
|
|
|
|
`php vendor/bin/phpunit tests\unit\Api\CreateClaimTest.php --filter testReturns401WhenNoAuth`
|
|
|
|
Run with verbose output (shows each test name):
|
|
|
|
`php vendor/bin/phpunit tests\unit\Api --testdox` |