← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1394234] [NEW] Separate jasmine unit test for services and controllers

 

Public bug reported:

In the current implementation of jasmine unit tests there is no
separation between services tests and controllers tests.

The reason to separate them is to avoid collision during tests, avoid
big templates with all the scripts, provide a better understanding on
how the tests are performed and how to add specific ones.

The second reason is controllers tests need to mock the entire horizon
application whereas services need only their dependencies, so we will
avoid huge amount of useless scripts during the service testing phase
and have a dedicated file for dependencies during the controller testing
phase.

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1394234

Title:
  Separate jasmine unit test for services and controllers

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  In the current implementation of jasmine unit tests there is no
  separation between services tests and controllers tests.

  The reason to separate them is to avoid collision during tests, avoid
  big templates with all the scripts, provide a better understanding on
  how the tests are performed and how to add specific ones.

  The second reason is controllers tests need to mock the entire horizon
  application whereas services need only their dependencies, so we will
  avoid huge amount of useless scripts during the service testing phase
  and have a dedicated file for dependencies during the controller
  testing phase.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1394234/+subscriptions


Follow ups

References