0.0.0 • Published 9 years ago

r-search v0.0.0

Weekly downloads
9
License
-
Repository
-
Last release
9 years ago

tui-search-frontend

requirements:

setup:

  1. npm install -g bower gulp
  2. npm install
  3. bower install
  4. bundle install (in cucumber directory)

gulp tasks:

  • gulp build:xxx to just compile app (xxx can be either dev, integration, prod)
  • gulp dev build app in build:dev mode and run local dev server
  • gulp dev:minified built app in build:dev with minified resources and run local dev server
  • gulp integrate build app in build:integration mode with minified resources and run a local integration server (proxies ttm-itest, but uses files from the local maschine)
  • gulp package:app build app in build:prod mode and package the application into one *.tar file which contains all relevant files for live deployment
  • gulp package:cucumber package all cucumber integration tests into one *.tar file
  • gulp test:units run unit tests and create code coverage report
  • gulp test:integration:xxx run integration tests on specified system (xxx can be either local, itest, stag, prod)

gulp options:

General options:

  • gulp <task> --minified minify css and js so that only 1 file per type is generated (automatically set for dev:minified and integrate tasks)

Integration test options:

  • gulp <task> --browser=xxx use specified browser to run integration tests (xxx can be either chrome, firefox, safari, phantomjs), chrome is used by default
  • gulp <task> --feature=xxx only use specified feature file to run integration tests (xxx is the path to the feature file, cucumber synctax with line number is possible)

How to integrate widget into a page?

  • make sure, widgetloader is also available
  • place following html code somewhere on the page

    <div class="tui-widget" data-widget="r-search" data-r-search></div>

    This will render an <input type="text"> with 100% width of the parent container.

cucumber tests

Example: cucumber --tag @itest PROFILE=tui.com.itest BROWSER=chrome