The initiative to integration Behat into Drupal 8 core (for automated front-end testing) requires the addition of a new libraries to the core composer.json file.
Specifically:
"require-dev": {
"drupal/drupal-extension": "v1.0.2"
},
must be added. This will in turn bring in the required Mink and Behat dependencies. This is a pre-requisite for the core Behat module, which is being worked on in #2232271: [Meta] Use Behat for validation testing.
Comments
Comment #1
grasmash commentedTemporarily marking as "Needs Work" pending the following commit:
https://github.com/Berdir/drupalextension/commit/bb7e705c31064d616421949...
This is necessary to cope with recent changes to D8 Core session handling.
Comment #2
benjy commentedOthers have noted frameworks we should consider instead of Behat. Personally, I think we're going towards Behat for the wrong reason so I want to express my doubts here for discussion.
Comment #3
xjmMarking active since there is no patch attached to this issue yet.
Comment #4
larowlanAdding #2232861: Create BrowserTestBase for web-testing on top of Mink which is another alternative approach towards supporting JavaScript testing.
Comment #5
tunic@benjy (#2)
Anyway I think that a new issue should be opened to discuss Behat and other alternatives as the named Codeception so other issues don't get this parallel discusion.
Comment #6
moshe weitzman commentedBerdir's patch to drupalextension was merged a while ago. Seems like we can proceed here and let committers make final decision here.
Comment #7
m1r1k commentedMy latest patch #2232271: [Meta] Use Behat for validation testing contains integration with v3.0.x
Comment #8
nod_Definitely a base system thing.
Comment #19
nod_So for "automated front-end testing" we now have nightwatch https://www.drupal.org/docs/testing/javascript-testing-using-nightwatch
closing because of this, in case the parent issue goes somewhere we might want to reopen but it's not something in the works at the moment.