Skip to content

Commit

Permalink
Fix unit test scripts (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
markshust authored Dec 7, 2024
1 parent ae8b1e5 commit 92c7334
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [48.0.1] - 2024-12-07

### Fixed
- Unit test scripts [PR #1263](https://github.com/markshust/docker-magento/pull/1263)

## [48.0.0] - 2024-11-27

This release introduces significant enhancements to the development environment, including a new PHP 8.4 Docker image for early adopters and developers wanting to test future compatibility. The MageOS support has been substantially improved, and a new RabbitMQ 3.13 image has been added. Several quality-of-life improvements have been implemented, such as better unit testing tools, enhanced SSL generation for multi-site setups, and comprehensive documentation updates. A notable breaking change is the shift in the download command syntax - it now expects the edition type before the version number (ex: `bin/download community 2.4.7-p3` instead of the previous `bin/download 2.4.7 community`). Additionally, all Docker images have been updated to maintain parity with current Magento version requirements.
Expand Down
4 changes: 2 additions & 2 deletions compose/bin/test/unit
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
elif [[ -z $1 ]]; then
echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
else
bin/php vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
fi
bin/cli vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
fi
4 changes: 2 additions & 2 deletions compose/bin/test/unit-coverage
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
elif [[ -z $1 ]]; then
echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
else
bin/php -d xdebug.mode=coverage vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist --coverage-html ./dev/tests/unit/report /var/www/html/"$1"
bin/cli php -d xdebug.mode=coverage vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist --coverage-html ./dev/tests/unit/report /var/www/html/"$1"
echo -e "Report path: dev/tests/unit/report"
fi
fi
4 changes: 2 additions & 2 deletions compose/bin/test/unit-xdebug
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ if [[ $1 == "-h" || $1 == "--help" ]]; then
elif [[ -z $1 ]]; then
echo -e "Please specify a path to your test or folder with tests (ex. app/code/Vendor/Module)"
else
bin/php -d xdebug.start_with_request=yes vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
fi
bin/cli php -d xdebug.start_with_request=yes vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist /var/www/html/"$1"
fi
2 changes: 1 addition & 1 deletion compose/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Mark Shust's Docker Configuration for Magento
## (https://github.com/markshust/docker-magento)
##
## Version 48.0.0
## Version 48.0.1

## To use SSH, see https://github.com/markshust/docker-magento#ssh
## Linux users, see https://github.com/markshust/docker-magento#linux
Expand Down

0 comments on commit 92c7334

Please sign in to comment.