Unit tests

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Gagik
Posts: 38
Joined: 05 Dec 2023, 06:58

Unit tests

Post by Gagik » 06 Dec 2023, 06:36

Hello,

PHP version: 8.1
Laravel version: 10
Aimeos version: 2023.07
Environment: Linux

Where can I find topics/documentation/open source projects about Unit Tests?
With small example like in the documentation for Unit Tests in Laravel (https://laravel.com/docs/10.x/testing)
For example how to test "Add to basket" action via Aimeos Unit Tests

User avatar
aimeos
Administrator
Posts: 7895
Joined: 01 Jan 1970, 00:00

Re: Unit tests

Post by aimeos » 08 Dec 2023, 09:03

There's a small article about the build system incl. test target:
https://aimeos.org/docs/latest/developer/phing/

If you want to test your extension:
1.) check out aimeos/aimeos-core
2.) adapt the ./config/resource.php (copy from .dist file)
3.) run "composer up"
4.) place your extension in the ./ext/ directory
5.) run "vendor/bin/phing -Ddir=ext/<yourext> setup testext
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply