omise / omise-magento

Omise Magento Plugin
https://docs.opn.ooo/magento-plugin
MIT License
34 stars 19 forks source link

[ENGA3-252]: ]Added unit tests for OmiseHelper.php. Added a Github workflow to inst… #364

Closed aashishgurung closed 2 years ago

aashishgurung commented 2 years ago

1. Objective

Compute the code coverage automatically. Also, add Github workflow to run unit test on PR merge and setup to generate code coverage locally.

Jira Ticket: #252

2. Description of change

Added a unit test for OmiseHelper.php class and added a Github workflow to run unit test on PR merge. A phpunit.xml configuration file is added. Previous test files under Test/Model/Api are moved under archive. We will improve those tests later. PR merge will also generate a new badge for code coverage that will be shown in the README.

Screen Shot 2565-07-22 at 17 12 04

🔧 Environments: