2017 © Pedro Peláez
 

library phpci-jasmine-node-plugin

A plugin for PHPCI to run Jasmine tests via jasmine-node

image

austp/phpci-jasmine-node-plugin

A plugin for PHPCI to run Jasmine tests via jasmine-node

  • Tuesday, January 20, 2015
  • by AustP
  • Repository
  • 1 Watchers
  • 1 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

phpci-jasmine-node-plugin

This is a plugin for PHPCI. It allows you to run jasmine-node tests via PHPCI., (*1)

Installation

Note: This will not install jasmine-node for you. You will have to install that yourself., (*2)

  1. Navigate to your PHPCI path. cd /path/to/phpci
  2. Edit the composer.json file. nano composer.json
  3. Add "austp\/phpci-jasmine-node-plugin": "~1.1" in the "require" section., (*3)

    "require": {
        ...,
        ...,
        "austp\/phpci-jasmine-node-plugin": "~1.1"
    }
  4. Download the plugin via composer. composer update austp/phpci-jasmine-node-plugin
  5. Copy build-plugins/jasminenode.js to /path/to/phpci/public/assets/js/build-plugins/jasminenode.js, (*4)

    cd /path/to/phpci/vendor/austp/phpci-jasmine-node-plugin/build-plugins
    cp jasminenode.js /path/to/phpci/public/assets/js/build-plugins/jasminenode.js

That's it as far as installation goes. Continue reading to see available options., (*5)

Configuration

In order to configure PHPCI to run jasmine-node, you need to edit the phpci.yml file. If you don't already have this file in your repository, go ahead and add it. Note: If you can't add a phpci.yml file to the repo, you can edit your project in PHPCI and configure it there., (*6)

Options

executable: "/path/to/jasmine-node" | Full path to a jasmine-node executable.
directory:  "specs/"                | The directory to run the tests on.
log:        true                    | (optional) Log jasmine-node's output to PHPCI.

phpci.yml

  1. Navigate to your repository. cd /path/to/repo
  2. Edit the phpci.yml file. nano phpci.yml
  3. Add \PHPCI_Jasmine_Node_Plugin\Jasmine_Node: in the "test" section., (*7)

    test:
      ...:
        ...: ...
        ...: ...
      ...:
        ...: ...
      \PHPCI_Jasmine_Node_Plugin\Jasmine_Node:
  4. Add your options under the \PHPCI_Jasmine_Node_Plugin\Jasmine_Node: line., (*8)

    \PHPCI_Jasmine_Node_Plugin\Jasmine_Node:
      executable: "/path/to/jasmine-node"
      directory: "specs/"
      log: true

The Versions

20/01 2015

dev-master

9999999-dev https://github.com/austp/phpci-jasmine-node-plugin

A plugin for PHPCI to run Jasmine tests via jasmine-node

  Sources   Download

MIT

by Aust P

plugin bdd test jasmine phpci jasmine-node

20/01 2015

1.1.1

1.1.1.0 https://github.com/austp/phpci-jasmine-node-plugin

A plugin for PHPCI to run Jasmine tests via jasmine-node

  Sources   Download

MIT

by Aust P

plugin bdd test jasmine phpci jasmine-node

20/01 2015

1.1.0

1.1.0.0 https://github.com/austp/phpci-jasmine-node-plugin

A plugin for PHPCI to run Jasmine tests via jasmine-node

  Sources   Download

MIT

by Aust P

plugin bdd test jasmine phpci jasmine-node

16/01 2015

1.0.0

1.0.0.0 https://github.com/austp/phpci-jasmine-node-plugin

A plugin for PHPCI to run Jasmine tests via jasmine-node

  Sources   Download

MIT

by Aust P

plugin bdd test jasmine phpci jasmine-node