Allow behat suite to ignore some features

Bug #1853066 reported by Robert Lyon on 2019-11-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Status tracked in 20.04
18.10
Low
Unassigned
19.04
Low
Unassigned
19.10
Low
Unassigned
20.04
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

Robert Lyon (robertl-9) wrote :
Changed in mahara:
importance: Undecided → Wishlist
status: New → In Progress
milestone: none → 20.04.0
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

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>

Mahara Bot (dev-mahara) wrote :

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

Mahara Bot (dev-mahara) wrote :

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

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)

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)

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
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers