cancel
Showing results for 
Search instead for 
Did you mean: 

How to validate or verify magento 2 extensions?

SOLVED

How to validate or verify magento 2 extensions?

Hi All,

As magento has released magento 2 marketplace upload validation tool.

Can you please help me with the procedure to test my extensions?

Magento 2 Marketplace Upload Validation Tool

I don't know how to test the extensions as there is no any procedure to test the extensions.

 

Thanks in advance.

 

 

Problem solved? Click Accept as Solution!
Magento Extension Developer | Facebook | Twitter
Tags (1)
7 REPLIES

Re: How to validate or verify magento 2 extensions?

How to validate a Magento 2 extension? https://mage2.pro/t/1240

Re: How to validate or verify magento 2 extensions?

Hello @Dmitry_Fedyuk

Thanks for your answer.

I know the procedure which you have given but i want to validate it before submission to magento marketplace.

so please give me the steps as how can i use the validate script.

Please read my question again,

Problem solved? Click Accept as Solution!
Magento Extension Developer | Facebook | Twitter

Re: How to validate or verify magento 2 extensions?

Hi @SanjayJethva

 

1) Once you have packaged your extension in .zip file move it to a directory

2) Download the validation script and extract it to the directory mentioned on the first step.

3) Run the following command

 

php validate_m2_package.php  <your_package_name.zip>

If no errors are there in the packaging and coding standards. No error will be visible on the console.

If errors are there those will be listed on the console.

 

For your reference purpose I have downloaded the wyomind-ordereraser-5.0.0 (NOTE: The extension has already passed the test and approved by Magento, I am using it to just to demonstrate.)

 

1) When I run the test first time with the extension package there are no errors.

validate.jpg

2) Now I deleted the composer.json file and registration.php file from there package and run the test.

 

validate - error.jpg

Please refer following links

1) MAGENTO 2 MARKETPLACE UPLOAD VALIDATION TOOL (QUICK NOTE)

2)MAGENTO 2.0 EXTENSION UPLOAD VALIDATION TOOL

 

I think above mentioned information should help you.

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: How to validate or verify magento 2 extensions?

Hello @muk_t

Thanks for your great answer. Really appreciate it.

I follow your steps and i am getting below error.

Could not open input file: validate_me_package.php

 

Thanks for your help in advance.

Problem solved? Click Accept as Solution!
Magento Extension Developer | Facebook | Twitter

Re: How to validate or verify magento 2 extensions?

Hi @SanjayJethva

 

How are you running the command?

Which operating system are you using?

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: How to validate or verify magento 2 extensions?

Hello @muk_t

Its working now.

Thanks

Problem solved? Click Accept as Solution!
Magento Extension Developer | Facebook | Twitter

Re: How to validate or verify magento 2 extensions?

its giving me the error 

 

"mytheme.zip" alternate folder structure is currently not supported

 

 

when following the procedure validating composer.json

 

through validate php file

Tags (1)