Testing Area/Behat Testing
From Mahara Wiki
< Testing AreaRevision as of 15:04, 29 May 2020 by Rangidaymond (talk | contribs) (→Welcome to Behat testing with Mahara)
Revision as of 15:04, 29 May 2020 by Rangidaymond (talk | contribs) (→Welcome to Behat testing with Mahara)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Welcome to Behat testing with Mahara
Behat testing is writing an automated test that tests the developers code by automatically, clicking around Mahara to check the devs submitted code doesn't break anything. This wiki section will teach you step by step how to write and submit your first Behat test.
Follow the steps below:
# Basics # Characteristics of a good test # Selectors and Elements
Behat code snippets
If you want to get a human-readable(ish) list of all the existing Behat test scenarios:
cd /var/www/mahara
find test/behat -name "*.feature" -exec grep -i -P "(Scenario)|(Feature)" {} \;