-
Notifications
You must be signed in to change notification settings - Fork 9.4k
dev:tests:run ignores functional tests #1551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@kassner AFAIK It is intentional: Functional tests have added dependency on MTF framework and Selenium (https://github.com/magento/magento2/blob/develop/dev/tests/functional/composer.json) |
There is any documentation for extension developers to create their own functional tests? |
Unfortunately that link does not make clear how to run functional tests, not even to test the Magento itself. I was able to run some of Magento's tests, but almost all of them result in an exception. What I've currently done so far inside
My result, except for one test that registered a customer and logged in, I got:
I'll keep digging. I appreciate any help. Thanks. |
Currently public documentation creation is in progress.
Such error can be occured only if Magento application isn't installed. Is a Magento successfully opened by the url that you have entered in app_backend_url? Also, please, pay attention that in order to run functional tests in Backend you need to disable secret key in Magento (http://devdocs.magento.com/guides/v2.0/mtf/mtf_installation/mtf_preinstall.html) |
@lanken Thanks for the update. I've fixed this particular exception in my environment, but now I'm issuing a new one:
As far as I looked into the history, I'm not sure why this file is missing (or why the call was renamed to "Deprecated"), I'm hoping I'm using the wrong repo (I'm using this one). Also, http://packages.magento.com/ does not have anything about mtf. I'm really lost here. Thank you guys. |
@kassner, you need to run generator to generate HandlerFactoryDeprecated class.
Currently this class is needed to support deprecated tests which will be rewritten in the future. |
Wonderful, I missed the Before finishing this issue, back to my first question, |
Currently we don't an ability to run functional tests via |
Why not installing MTF and selenium by default? |
@jrosell please avoid posting on closed issues. It doesn't make sense to install MTF and selenium by default as it will not be used in production mode. |
Hi,
Functional tests are not listed as a test type to run with
bin/magento dev:tests:run
:magento2/app/code/Magento/Developer/Console/Command/DevTestsRunCommand.php
Lines 115 to 147 in 57f5ab8
Is there any reason for this or was just forgotten?
Thanks.
The text was updated successfully, but these errors were encountered: