shyim / shopware-docker

Easy to use Docker Installation for Shopware 5 and Shopware 6
MIT License
115 stars 27 forks source link

command swdc admin-jest failed #164

Closed rammi22 closed 2 years ago

rammi22 commented 2 years ago

Describe the bug Running tests using swdc admin-jest or swdc admin-jest MyProjectName failed. Execution prints available commands instead of expected run tests.

To Reproduce Steps to reproduce the behavior:

  1. run swdc up MyProjectName
  2. run swdc admin-jest

Expected behavior Running tests located in custom/plugins/MyPluginName/src/Resources/app/administration/test.

Screenshots

rammi@rammi-laptop-i7:~/Code/nudelplanet$ swdc admin-jest MyPluginName
Installing Node v12.22.12 (x64)
warning: Version already installed at "/nvm/.debian-fnm/node-versions/v12.22.12"
Using Node v12.22.12

 _____ _                                          ______           _
/  ___| |                                         |  _  \         | |
\ `--.| |__   ___  _ ____      ____ _ _ __ ___    | | | |___   ___| | _____ _ __
 `--. \ '_ \ / _ \| '_ \ \ /\ / / _` | '__/ _ \   | | | / _ \ / __| |/ / _ \ '__|
/\__/ / | | | (_) | |_) \ V  V / (_| | | |  __/   | |/ / (_) | (__|   <  __/ |
\____/|_| |_|\___/| .__/ \_/\_/ \__,_|_|  \___|   |___/ \___/ \___|_|\_\___|_|
                  | |
                  |_|

Installing Node v12.22.12 (x64)
warning: Version already installed at "/nvm/.debian-fnm/node-versions/v12.22.12"
Using Node v12.22.12
Available commands in module: base
    command-list            
    completion              
    configure               Opens the configuration .env file with your favourite editor
    console                 Executes the symfony console for the given project
    ...

Environment:

Additional context a working example using shopeware-docker like https://developer.shopware.com/docs/guides/plugins/plugins/testing/jest-admin would be usefull

Dominik28111 commented 2 years ago

Now you have the ability to run swdc admin-jest MyProject MyPluginName

rammi22 commented 2 years ago

Now you have the ability to run swdc admin-jest MyProject MyPluginName

No works, still the same bug

rammi@rammi-laptop-i7:~/Schreibtisch/PROJECTS/ecommerce/shopware$ swdc admin-jest myProject MyPluginName
Installing Node v12.22.12 (x64)
warning: Version already installed at "/nvm/.debian-fnm/node-versions/v12.22.12"
Using Node v12.22.12

 _____ _                                          ______           _
/  ___| |                                         |  _  \         | |
\ `--.| |__   ___  _ ____      ____ _ _ __ ___    | | | |___   ___| | _____ _ __
 `--. \ '_ \ / _ \| '_ \ \ /\ / / _` | '__/ _ \   | | | / _ \ / __| |/ / _ \ '__|
/\__/ / | | | (_) | |_) \ V  V / (_| | | |  __/   | |/ / (_) | (__|   <  __/ |
\____/|_| |_|\___/| .__/ \_/\_/ \__,_|_|  \___|   |___/ \___/ \___|_|\_\___|_|
                  | |
                  |_|

Installing Node v12.22.12 (x64)
warning: Version already installed at "/nvm/.debian-fnm/node-versions/v12.22.12"
Using Node v12.22.12
Available commands in module: base
    command-list            
    completion
    ...  

Can you please provide a step by step configuration for the test setup for custom modules?