Skip to content

move UI unit tests away from PHP code and run directly in phantomjs w/ jasmine testing framework #4739

@diosmosis

Description

@diosmosis

Converting UI tests to JavaScript will confer many benefits including:

  • Clearer test output (& no travis timing issues).
  • Faster tests (we can setup just once for all tests & don't have to execute phantomjs multiple times).
  • Clearer test code (via Jasmine's BDD style output).

Steps to complete:

  • Move all of test environment setup to Fixture class. (done in uiunittests branch)
  • Extend mocha & chai to handle screenshot compare use-case.
  • Create JS script that will run a PHP program to setup the database and run each UI test suite.
  • Modify existing UI tests.
  • Modify travis config to run via phantomjs.

Reason for using Jasmine: phantomjs uses Jasmine internally for its tests so we know it'll work. mocha + chai can be used as an alternative.

CC-ing tsteur as per matt's request.

Update: Using mocha + chai is actually easier to get running and easier to extend.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MajorIndicates the severity or impact or benefit of an issue is much higher than normal but not critical.TaskIndicates an issue is neither a feature nor a bug and it's purely a "technical" change.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions