0.0.0 • Published 9 years ago
r-search v0.0.0
tui-search-frontend
requirements:
- if tests should be run in phantomjs, it must be installed manually and must be included in the system PATH
phantomjs 2.0 should be used instead of version 1.9.8
OSx download url: https://github.com/eugene1g/phantomjs/releases
setup:
- npm install -g bower gulp
- npm install
- bower install
- bundle install (in
cucumberdirectory)
gulp tasks:
gulp build:xxxto just compile app (xxxcan be eitherdev,integration,prod)gulp devbuild app inbuild:devmode and run local dev servergulp dev:minifiedbuilt app inbuild:devwith minified resources and run local dev servergulp integratebuild app inbuild:integrationmode with minified resources and run a local integration server (proxies ttm-itest, but uses files from the local maschine)gulp package:appbuild app inbuild:prodmode and package the application into one *.tar file which contains all relevant files for live deploymentgulp package:cucumberpackage all cucumber integration tests into one *.tar filegulp test:unitsrun unit tests and create code coverage reportgulp test:integration:xxxrun integration tests on specified system (xxxcan be eitherlocal,itest,stag,prod)
gulp options:
General options:
gulp <task> --minifiedminify css and js so that only 1 file per type is generated (automatically set fordev:minifiedandintegratetasks)
Integration test options:
gulp <task> --browser=xxxuse specified browser to run integration tests (xxxcan be eitherchrome,firefox,safari,phantomjs),chromeis used by defaultgulp <task> --feature=xxxonly use specified feature file to run integration tests (xxxis 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
0.0.0
9 years ago