A robot framework library for Webpack.
Project description
Introduction
WebpackLibrary is a Robot Framework library for Webpack. It allows to start and stop the Webpack dev server.
Installation
Install robotframework-webpack with pip:
$ pip install robotframework-webpack
Usage
In order to write your first robot test, make sure that you include Selenium2Library and WebpackLibrary. Create a test.robot file with the following content:
*** Variables *** ${HOST} 127.0.0.1 ${PORT} 7447 ${BROWSER} chrome ${SERVER} http://${HOST}:${PORT} *** Settings *** Documentation WebpackLibrary Acceptance Tests Library Selenium2Library timeout=10 implicit_wait=0 Library WebpackLibrary Suite Setup Start Webpack and Open Browser Suite Teardown Stop Webpack and Close Browser *** Test Cases *** Scenario: Webpack Dev Server Go To ${SERVER} # Amend this line to check for the real content of your app. Otherwise this test will fail. Wait until page contains Hello World Page Should Contain Hello World *** Keywords *** Start Webpack and Open Browser Start Webpack ${HOST} ${PORT} debug=False Open Browser ${SERVER} ${BROWSER} Set Window Size 1280 1024 Stop Webpack and Close Browser Stop Webpack Close Browser
Development
Project Setup:
$ virtualenv-2.7 .py27 $ source .py27/bin/activate $ pip install -r requirements.txt $ python setup.py develop
Run Test:
$ pybot test.robot
1.0a7 (2016-07-19)
Bugfixes:
Do not log the webpack path. [timo]
1.0a6 (2016-07-18)
Bugfixes:
Allow to use ‘Start Webpack’ keyword without a debug attribute set. This fixes https://github.com/kitconcept/robotframework-webpack/issues/2. [timo]
1.0a5 (2016-07-13)
New Features:
Add ‘webpack_bin_path’ param to ‘Start Webpack’ keyword. [timo]
1.0a4 (2016-07-13)
Breaking Changes:
Move all arguments from WebpackLibrary import to ‘Start Webpack’ keyword. [timo]
Bugfixes:
Remove requests from dependencies. [timo]
Fix package keywords. [timo]
1.0a3 (2016-07-13)
Bugfixes:
Fix content_base param. [timo]
Log OSErrors when calling webpack. [timo]
1.0a2 (2016-07-13)
New Features:
Add config parameter to WebpackLibrary. [timo]
1.0a1 (2016-07-12)
Initial release. [timo]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for robotframework-webpack-1.0a7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5d623c1defbb47bcab466c64ec9b0519462e6c0eae9c65054d3c0ebec2cbc51 |
|
MD5 | d304dcdb40b9220d248be166e38db6fc |
|
BLAKE2b-256 | 38fd334bde5cf83ec2b011991d61d847f2637709be287ac1866f3d840a6ffeef |