Questions tagged [tests]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

Missing folder _ouput in dev/test/acceptance/test/ in magento 2.3

After I run finished the test and I want to see the allure report in folder _ouput but it does not exist in dev/test/acceptance/test/, I do not know why? and in the Allure frame do not have test step
0
votes
0answers
66 views

Can not run vendor/bin/mftf generate:tests on Command line in Magento 2.3

When I run this command line vendor/bin/mftf generate:tests in Magento root it shows me an error : in ModuleReSovlver.php line 444: Could not retrieve API from Magento instance <403 ...
0
votes
1answer
27 views

How to run static tests for a single/specific module? [duplicate]

I am looking for a way to run static tests for a single module as my application is huge. So running static tests frequently and checking code consumes a lot of time. As per my knowledge, Magento ...
0
votes
0answers
35 views

MAGENTO2: HOW TO RUN TEST FILE .XML IN COMMAND LINE

I already have a file called StorefrontLockCustomerOnLoginPageTest.xmlplaced in the folder app\code\Magento\Customer\Test\Mftf\Test\StorefrontLockCustomerOnLoginPageTest.xml which following this code: ...
1
vote
0answers
76 views

Code refactor : replace model with repository

I am trying to refactor code of app/code/Magento/Cms/Controller/Adminhtml/Page/Delete.php by replacing \Magento\Cms\Model\Page with \Magento\Cms\Api\PageRepositoryInterface and removing direct use of ...
2
votes
1answer
429 views

Magento 2, how to create a test from a custom module in the new MFTF (magento functional testing framework)

I've read the documentation that is available for the new MFTF for Magento 2, however I can't figure out how to go about creating tests that are located in a different folder other than the folders ...
7
votes
1answer
1k views

Run static tests for a specific module

I am running php bin/magento dev:tests:run static to check my code quality but it takes a really long time. Is there a way I can run them for one module and/or one theme?
0
votes
1answer
280 views

magento 2 how to call my custom method in test.php at root folder?

I would like to know, I have a custom method in test.php at magento2 root folder i would like to call my custom method how to do that? i have written a sample test script below please suggest me here ...
8
votes
1answer
608 views

What are the static tests checking?

After building my module I tried running bin/magento dev:tests:run static. This reported a few problems with my code, but I'm not sure exactly what is checked when running this tests. The official ...
0
votes
1answer
61 views

Magento CPU 100% utilization even when less traffic

we have three store magento sites installed in server on a single instance. the cpu is going for 100% usage for just very less traffic. Any help will be appreciated?
0
votes
1answer
322 views

Magento 1 - MTF How to run functional test ?

Magento 1 ships with a /tests/ folder containing functional test based on PHPUnit and Selenium ( note: you shouldn't deploy this folder to live site :) I'm looking for some information in order to ...
4
votes
2answers
932 views

Failing the dependencies check

I'm running the static tests for one of my magento 2 modules php bin/magento dev:tests:run static and I get the following errors. Data set: [ROOT]/app/code/Sample/News/Block/Adminhtml/Author/Edit/...
4
votes
2answers
839 views

Using 2 instances of the same class as dependencies for an other class

I've built a CRUD module in Magento2. My Save admin controller has 2 dependencies that are basically the same classes, with different settings. But when I run the static tests php bin/magento dev:...
2
votes
1answer
78 views

Constructor integrity tests

I've created a simple CRUD module for Magento 2 and now I'm running the tests to see if I didn't break something. Apparently there are a lot of things wrong with my module. I will be posting some ...