Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-16046

Karma: Use PhantomJS by default

    Details

    • Type: Task
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.6
    • Component/s: Test suite
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      When one runs "npm test", it executes the tests in Chrome. A couple issues:

      1. In some Linux flavors, Chrome is installed as "Chromium" and doesn't get picked up by karma-chrome-launcher.
      2. In OSX, it opens up a blank window which you can't close (without killing the tests).
      3. The official test runs in CI need to be headless.

      Switching the default to "PhantomJS", we can have npm download a suitable runtime. Observed to work in OSX and multiple Linux flavors.

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              timotten Tim Otten
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: