Make it easier to run one specific feature file

Bug #1583435 reported by Aaron Wells on 2016-05-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Wishlist
Aaron Wells
15.04
Wishlist
Aaron Wells
15.10
Wishlist
Aaron Wells
16.04
Wishlist
Aaron Wells
16.10
Wishlist
Aaron Wells

Bug Description

Currently if automated tests fail and I want to re-run just one specific feature file, I have to manually edit the file, add "@debug" to it, and then tell our mahara_behat.sh script to look for that @debug tag. This is kind of annoying, and there's a tendency to accidentally leave those @debug tags there when committing.

There's an easier way! The underlying behat command script, external/vendor/bin/behat, will accept a filename and only run the tests under that file. We can adapt our utility script to use that *or* a tag.

Reviewed: https://reviews.mahara.org/6503
Committed: https://git.mahara.org/mahara/mahara/commit/b4bcce0b9b6e71359d28102f115d62757d270e87
Submitter: Son Nguyen (<email address hidden>)
Branch: master

commit b4bcce0b9b6e71359d28102f115d62757d270e87
Author: Aaron Wells <email address hidden>
Date: Thu May 19 17:22:47 2016 +1200

Bug 1583435: Let mahara_behat.sh run just one particular feature file

Change-Id: Id5c9a279f257db8c2bc832ff0799682027f62518
behatnotneeded: Covered by existing tests

tags: added: nominatedfeature
Mahara Bot (dev-mahara) wrote :

Patch for "15.10_STABLE" branch: https://reviews.mahara.org/6553

Mahara Bot (dev-mahara) wrote :

Patch for "15.04_STABLE" branch: https://reviews.mahara.org/6554

Reviewed: https://reviews.mahara.org/6552
Committed: https://git.mahara.org/mahara/mahara/commit/e660e126ebbee092db00acde57cb20012e144517
Submitter: Robert Lyon (<email address hidden>)
Branch: 16.04_STABLE

commit e660e126ebbee092db00acde57cb20012e144517
Author: Aaron Wells <email address hidden>
Date: Thu May 19 17:22:47 2016 +1200

Bug 1583435: Let mahara_behat.sh run just one particular feature file

Change-Id: Id5c9a279f257db8c2bc832ff0799682027f62518
behatnotneeded: Covered by existing tests
(cherry picked from commit b4bcce0b9b6e71359d28102f115d62757d270e87)

Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/6553
Committed: https://git.mahara.org/mahara/mahara/commit/5bcf99ec27c0f04fececfc14fa29566c8b2743af
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.10_STABLE

commit 5bcf99ec27c0f04fececfc14fa29566c8b2743af
Author: Aaron Wells <email address hidden>
Date: Thu May 19 17:22:47 2016 +1200

Bug 1583435: Let mahara_behat.sh run just one particular feature file

Change-Id: Id5c9a279f257db8c2bc832ff0799682027f62518
behatnotneeded: Covered by existing tests
(cherry picked from commit b4bcce0b9b6e71359d28102f115d62757d270e87)

Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/6554
Committed: https://git.mahara.org/mahara/mahara/commit/ec675954f93f600d40b6753a4417790fed37696a
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.04_STABLE

commit ec675954f93f600d40b6753a4417790fed37696a
Author: Aaron Wells <email address hidden>
Date: Thu May 19 17:22:47 2016 +1200

Bug 1583435: Let mahara_behat.sh run just one particular feature file

Change-Id: Id5c9a279f257db8c2bc832ff0799682027f62518
behatnotneeded: Covered by existing tests
(cherry picked from commit b4bcce0b9b6e71359d28102f115d62757d270e87)

Robert Lyon (robertl-9) on 2016-10-21
Changed in mahara:
milestone: 16.10.0 → none
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers