/ps_qualityassurance

Magic module to test module integration in PrestaShop

Primary LanguageVueAcademic Free License v3.0AFL-3.0

Quality Assurance module

PHP tests JS tests Total Downloads GitHub release GitHub license

About

This module was desiged to helps QA team to test hooks.

It provides a dedicated BO page where you can register to any hook inside PrestaShop and control what is being returned through this hook.

How to use it

Install it, then use the new link in the menu "Quality Assurance" to reach the main configuration page.

From this page, you can

  • see configured hooks
  • register new hooks
  • see hook call logs

Hook call logs are being stored inside SQL table ps_quality_assurance_hook_logs. If the table contains too much content, you must empty it.

Requirements

Required only for development:

  • npm
  • composer

Development tools

Installation

Install all dependencies.

npm install
composer install

Usage

npm run dev # Watch js/css files for changes
npm run build # Build for production

Build a ZIP

If you want to install it into your shop by using standard module upload process, you need to build a ZIP archive.

Install npm and composer dependencies, then build the JavaScript assets for production. Then remove the unnecessary folders:

  • node_modules
  • tests
  • _dev
  • .github
  • .git

Finally build a ZIP archive from the folder.

Contributing

PrestaShop modules are open source extensions to the PrestaShop e-commerce platform. Everyone is welcome and even encouraged to contribute with their own improvements!

Just make sure to follow our contribution guidelines.

License

This module is released under the Academic Free License 3.0