mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #45463
[Bug 1732297] [NEW] Remove unnecessary steps from behat tests
Public bug reported:
In a lot of cases, there are repeated and unnecessary steps being done
in tests. For instance, a test that has nothing to do with logging in
will have:
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
We don't need to check the login works every time.
Also, there are a lot of cases where we could add a new page in the background (i.e, it is not a manual add page test) and instead it is done manually in a collection of steps.
Fixing these things should improve performance.
** Affects: mahara
Importance: Undecided
Assignee: Rebecca Blundell (rjb-dev)
Status: In Progress
** Tags: behat
** Changed in: mahara
Assignee: (unassigned) => Rebecca Blundell (rjb-dev)
** Changed in: mahara
Status: New => In Progress
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1732297
Title:
Remove unnecessary steps from behat tests
Status in Mahara:
In Progress
Bug description:
In a lot of cases, there are repeated and unnecessary steps being done
in tests. For instance, a test that has nothing to do with logging in
will have:
Given I log in as "admin" with password "Kupuhipa1"
# Verifying log in was successful
And I should see "Admin User"
We don't need to check the login works every time.
Also, there are a lot of cases where we could add a new page in the background (i.e, it is not a manual add page test) and instead it is done manually in a collection of steps.
Fixing these things should improve performance.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1732297/+subscriptions
Follow ups