Feature #26194

Jasmine integration

Added by Rens Admiraal about 2 years ago. Updated about 1 year ago.

Status:Needs Feedback Start date:2011-04-23
Priority:Could have Due date:2012-06-29
Assignee:Rens Admiraal % Done:

60%

Category:Infrastructure
Target version:beta Estimated time:16.00 hours
Votes: 0

Description

Hi,

The jasmine testrunner extension will be in TER soon (http://typo3.org/extensions/repository/view/jasmine/current/). For phoenix we already created a console runner with junit output, would it be possible to integrate this into ci.typo3.org, and what would be a good practice?

Add the console runner html file to the extension which should be tested in folder <path> for example?

History

Updated by Christian Trabold about 2 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Christian Trabold
  • Target version set to beta
  • Estimated time set to 16.00

Will take a look at the extension and comment here.

What do you think of implementing node.js like this for running validation and testing of JavaScript-files?

http://www.zendesk.com/blog/javascript-loves-ci

Updated by Rens Admiraal about 2 years ago

I would personally pick jasmine since that's the testrunner we implemented for phoenix also. It works with jquery, works with extjs, and has junit output (and is already integrated in jenkins by sebastian).
And, it can be run standalone without installing tools on your server...

Updated by Rens Admiraal about 2 years ago

Didn't read the post completely I think ;-) It was not about jasmine yes / no ;-)

Have to get some sleep soon I think :)

But still I don't think we need all this, jasmine can be ran standalone, and we already do have running jasmine tests in jasmine for phoenix, so maybe we can give some more info about that if that would be helpful...

Updated by Christian Trabold almost 2 years ago

  • % Done changed from 0 to 20

Just to let you know: I'm still investigating on this.

In the first step, I'd integrate these Tests for TYPO3 v4 Core. Second steps will integrate this for Extensions that are hosted on forge.typo3.org.

Details

Currently I'd go for the Node.js Integration of Jasmine and call the tests in folder "Tests/JavaScript/" if present.

Details: https://github.com/mhevery/jasmine-node

Why Node.js?

  1. I already have very good experience with Node.js + jshint on other projects - it just works
  2. we don't need a TYPO3 backend for displaying the Test-Results.
    Remember: We do not have a fully TYPO3 Installation open for the public at the moment.

I'll keep you informed.

Updated by Christian Trabold over 1 year ago

  • Due date set to 2011-12-30
  • % Done changed from 20 to 40

Still investigating - NOT forgotten :)

Updated by Christian Trabold about 1 year ago

  • Due date changed from 2011-12-30 to 2012-06-29
  • Category set to Infrastructure
  • Assignee changed from Christian Trabold to Rens Admiraal
  • % Done changed from 40 to 60

To help me speed up the integration of this feature:

  1. What exact setup do we need on the CI server? Are special packages or extensions needed?
    Please be as specific as possible
  2. What commands do we have to trigger to run the tests?
    Bonus points for copy&paste ready ;)

Thanks!

Also available in: Atom PDF