From 3ace7a3acdaf0cc3579ac4a920cffbf971a7901e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pysiak?= Date: Tue, 31 Jan 2023 09:13:58 +0100 Subject: [PATCH] Update testing plugin docs --- doc/installation.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/doc/installation.md b/doc/installation.md index 9b615339e..776139911 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -126,11 +126,20 @@ Any other approach, that will allow cms pages to read this value in js, under "r ```bash $ composer install $ cd tests/Application +``` +Copy file `package.json.~1.XX.0.dist` to `package.json` where `~1.XX.0` is the Sylius version you are using. + +```bash +$ cp package.json.~1.12.0.dist package.json +``` + +```bash $ yarn install -$ yarn run gulp -$ bin/console assets:install public -e test -$ bin/console doctrine:schema:create -e test -$ bin/console server:run 127.0.0.1:8080 -d public -e test +$ yarn encore dev +$ APP_ENV=test bin/console assets:install +$ APP_ENV=test bin/console doctrine:schema:create +$ APP_ENV=test symfony server:start --port=8080 -d +$ cd ../.. $ open http://localhost:8080 $ vendor/bin/behat $ vendor/bin/phpspec run