Allow behat suite to ignore some features

Bug #1853066 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Committed
Wishlist
Unassigned
18.10
Fix Released
Low
Unassigned
19.04
Fix Released
Low
Unassigned
19.10
Fix Released
Low
Unassigned
20.04
Fix Released
Wishlist
Unassigned

Bug Description

So that we can run them on local instances but not have jenkins run them

Useful for things like webservice connection testing or elasticsearch integration

Revision history for this message
Robert Lyon (robertl-9) wrote :
Changed in mahara:
importance: Undecided → Wishlist
status: New → In Progress
milestone: none → 20.04.0
Revision history for this message
Robert Lyon (robertl-9) wrote :

A fast way to test the patch is to use the --dry-run behat option

eg: where [path/to/file] is actual path to file

to see count of all feature files
./external/vendor/bin/behat --config [path/to/file]/behat/behat.yml --dry-run --tags @core

to see count of all feature files minus the ones tagged @manual
./external/vendor/bin/behat --config [path/to/file]/behat/behat.yml --dry-run

to see count of all feature files tagged @manual
./external/vendor/bin/behat --config [path/to/file]/behat/behat.yml --dry-run --tags @manual

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10583
Committed: https://git.mahara.org/mahara/mahara/commit/e552d19996cad4d44cdd2fa7d7d8bc212c5a1bd5
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit e552d19996cad4d44cdd2fa7d7d8bc212c5a1bd5
Author: Robert Lyon <email address hidden>
Date: Sun Nov 10 10:25:58 2019 +1300

Bug 1853066: Trying to get jenkins to ignore the elasticsearch test

In this instance, scenarios tagged as @manual will be ignored unless the
CLI command is run with the @manual tag

mahara_behat run @manual

or if the CLI command is run with the suite tag

mahara_behat run @core

behatnotneeded

Change-Id: I8563965e0e5ced692ce9cc24206c791965adba61
Signed-off-by: Robert Lyon <email address hidden>

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "19.10_STABLE" branch: https://reviews.mahara.org/10620

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "18.10_STABLE" branch: https://reviews.mahara.org/10621

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Patch for "19.04_STABLE" branch: https://reviews.mahara.org/10622

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/10622
Committed: https://git.mahara.org/mahara/mahara/commit/971d8a9743f2f9e84c31724d9adb6ec1f5c1c914
Submitter: Robert Lyon (<email address hidden>)
Branch: 19.04_STABLE

commit 971d8a9743f2f9e84c31724d9adb6ec1f5c1c914
Author: Robert Lyon <email address hidden>
Date: Sun Nov 10 10:25:58 2019 +1300

Bug 1853066: Trying to get jenkins to ignore the elasticsearch test

In this instance, scenarios tagged as @manual will be ignored unless the
CLI command is run with the @manual tag

mahara_behat run @manual

or if the CLI command is run with the suite tag

mahara_behat run @core

behatnotneeded

Change-Id: I8563965e0e5ced692ce9cc24206c791965adba61
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit e552d19996cad4d44cdd2fa7d7d8bc212c5a1bd5)

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/10620
Committed: https://git.mahara.org/mahara/mahara/commit/6e91b89e10da1164a848e0f5682f3e925169e61d
Submitter: Robert Lyon (<email address hidden>)
Branch: 19.10_STABLE

commit 6e91b89e10da1164a848e0f5682f3e925169e61d
Author: Robert Lyon <email address hidden>
Date: Sun Nov 10 10:25:58 2019 +1300

Bug 1853066: Trying to get jenkins to ignore the elasticsearch test

In this instance, scenarios tagged as @manual will be ignored unless the
CLI command is run with the @manual tag

mahara_behat run @manual

or if the CLI command is run with the suite tag

mahara_behat run @core

behatnotneeded

Change-Id: I8563965e0e5ced692ce9cc24206c791965adba61
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit e552d19996cad4d44cdd2fa7d7d8bc212c5a1bd5)

Revision history for this message
Mahara Bot (dev-mahara) wrote :

Reviewed: https://reviews.mahara.org/10621
Committed: https://git.mahara.org/mahara/mahara/commit/29d2869efef4598fba981d288a3a1fc4f4c8d7f8
Submitter: Robert Lyon (<email address hidden>)
Branch: 18.10_STABLE

commit 29d2869efef4598fba981d288a3a1fc4f4c8d7f8
Author: Robert Lyon <email address hidden>
Date: Sun Nov 10 10:25:58 2019 +1300

Bug 1853066: Trying to get jenkins to ignore the elasticsearch test

In this instance, scenarios tagged as @manual will be ignored unless the
CLI command is run with the @manual tag

mahara_behat run @manual

or if the CLI command is run with the suite tag

mahara_behat run @core

behatnotneeded

Change-Id: I8563965e0e5ced692ce9cc24206c791965adba61
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit e552d19996cad4d44cdd2fa7d7d8bc212c5a1bd5)

tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 20.04.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.