Public bug reported:
The UnityTestCase setup in autopilot tests does a lot of things to
prepare the environment and it has some conditionals to change the
behaviour depending on the tests being run.
This makes the setup too complicated and hard to reuse in other tests.
If we inherit from that test case, we inherit the setup, so this it's
not a good base to start new tests.
An alternative is to write the setup as multiple fixtures, one per each
environment detail we need. Fixtures allow to extend test cases by
composition, so you choose the parts you want in each test, making the
environment clearer.
** Affects: unity8 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1447206
Title:
in autopilot tests, UnityTestCase setup is too big and complicated
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1447206/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs