Its setup should not depend on FAIL_FAST env variable,
which is responsible for stopping of tests only.
Also, xml file should be saved in the same location as other artifacts
like screenshots.
Change-Id: I18c6ec64906aa5b8dea39a0a837389875ddd6b3e
1. Generating xml file output for parcing results into Test rail.
2. Add "FAIL_FAST" variable to aviod test run stopping at the middle of execution.
Change-Id: Ia566f86262abc2bbf2e449c52d2a3e8b76329610
Firefox since version 47 requires use of Marionette driver
to work with Selenium. Updated selenium-standalone downloads
and utilizes this driver by default.
Change-Id: I9659cee48491f4de9484c23fb9a4f59f69797d29
OSTF server responses emulation added to dev server. It is disabled
by default and --fake-ostf key should be passed to gulp in order to
enable it. Default testset will be for finished state, use --running
additional key to show one for in progress.
Change-Id: I15ff0959c4093b55a217bef3d4cad9f3a429d580
In order to make possible an upgrade of Lodash package
to the latest 4.x version, usages of _.pluck should be replaced by _.map.
_.pluck is deprecated in the 4.x Lodash.
Change-Id: I080ff817049d69f4cd4365c42f5a171da74125aa
It makes no sense to transpile tests for every test suite,
so this commit makes transpilation run only once, after UI
build. Also, --no-ui-compression falg renamed to
--no-ui-build - build process now is obligatory and it's not
just a compressions, but a bunch of more complex processes.
Change-Id: If184038c832585396c630d3359c6f4309f3d8eba
Intern uses AMD notation for its tests, so there is need
to specify Babel Simple AMD plugin for proper transformation.
It cannot properly generate AMD modules with exports,
so Intern config now has to be constructed manually.
Change-Id: I55d881acc8cb8a72ca401f5fdf6a47455e41b12e
Before using Babel 6 there was no way to use ES6 for Intern-based
functional tests, as Intern requires AMD modules. Since Babel 6 allows
to choose module format by adding proper module transformation plugin,
we can start using ES6 for the tests. This commit just adds
transpiling, without actually converting the code to use ES6 syntax.
Change-Id: Iddf0622f5759faead45cb530e05954a29ffebb01
* Babel to latest 6.x
* React to latest 15.x
* LoDash to latest 3.x version
* selenium-standalone to 5.1.0
* gulp to 3.9.1
* js-cookie to 2.1.0
* karma-webdriver-launcher to 1.0.4
* added whatwg-fetch polyfill
* switched to backbone.routerfilter from NPM
Change-Id: I9517f89c24a053ecf137f27ed297aaa578efb012
This commit enables linting for node.js files (gulpfile and
helpers, webpack and karma configs) and also splits .eslintrc
into 2 files. This is needed because our node.js files don't
support ES6 syntax, so nailgun/.eslintrc now contains common
linting rules and nailgun/static/.eslintrc contains JSX
and ES6-specific rules.
Implements: blueprint converge-to-eslint-config-openstack
Change-Id: I1956f2022475b39724dfb49f98bdc8e6e5d898e9
We're no longer using Intern for unit-testing, so we need to move
all intern-related files to a separate directory
(tests/functional). It's needed to setup eslint properly - unit
and functional tests are run in a different environments (node
and browsers) and require different configuration.
Change-Id: I9b938faed5a2b280645a022e47cc12958fd1ddfd
- Made selenium version controllable via env variable
- Made browser controllable via env variable
- Updated default Chrome driver version
- Increased some timeouts
- Made some check more bulletproof
Change-Id: I11cd0c8b32d0b22d6cd08b476b33e248217e8b7c
- added gulp build --watch
- updated documentation
- bundle is now loaded after DOMContentLoaded event
Related to blueprint webpack
Change-Id: I04c341987002687efd6713c5296b23e491aacd6f
ESLint evolved and become mature enough to completely replace
JSCS. This commit translates JSCS rules into ESLint ones and
fixes the code accordingly.
Also, ESLint config converted to YAML for readability
Change-Id: I2bea5b48284c68ecacd3ec3ac67c5852345f29e3
Since we use Babel to transform JSX and Webpack for bundling,
ti doesn't make sense anymore to keep a separate .jsx extension
for files.
Change-Id: If70b512d7a27684d2b9b84b24f19658294cc1505
Webpack is much more powerful than r.js and opens path
to further improvements in testing, build speed,
developer convenience, ES2015, etc.
Implements blueprint webpack
Change-Id: I18a3b74db243f29e5dacb004569d66463f4ab16d
Casperjs is not used anymore; phantomjs won't be used by
default and 100% optional, but supported: it is still possible
to run
gulp unit-tests --browser phantomjs
but globally installed phantomjs will be used
Related to blueprint webpack
Change-Id: I9761cd7dcc4c5ff07f737cabbe4c46f6741ae408
Doing this slows down build process. Sinon should go to
static/tests. Also don't include tests in build process.
Closes-Bug: #1486096
Change-Id: I696fa4e219bcb23e3fddf59d3e1ac4f10e7c925f
Rules with "1" value generate warnings and are going to be fixed
in the next commit by fixing the code.
Rules with "0" value represent validation rules which I'd really
like to have, but they require large amount of fixes.
Closes-Bug: #1469127
Change-Id: Ie8c10c5d16627c008c9ce5760396226381116a43
This commit makes it possible to execute UI
functional tests either based on Casper or on Intern/Selenium
Change-Id: I21d342093f142a1bbe7b8ae4f2c96fad1c125a0b
Run via `gulp jscs:fix`
Also change disallowMultipleSpaces to allow multiple spaces
before one-line comments
Change-Id: Ic99566d9fcd9b321407cfbacc41eaaa2c8dcefbc
This commit adds unit-tests runner for UI and 1 test suite for
the expression parser. It also makes --webui flag for run_tests.sh
run all the UI tests: lint checks, unit tests, functional tests.
Change-Id: I6176dc01cdd6d2bcf7a99185e92cc498c7b2b899
- moved everything from js dir to the top
- renamed static/libs to static/vendor
- renamed static/css to static/styles; styles.less to main.less
- removed obsolete entries from config.js
Change-Id: Ic20c0604f844d80092f65a7be7be4710e1a50928
Since migration to Gulp, commit SHA is not used to bust cache.
Instead we use current date. So we need to rename argument name
accordingly to avoid confusion.
Change-Id: I33b31d69231fefff9f455d2dbbeca0230ca8dccc
Fixed by putting all the plugin files into build. Probably later
we need to develop coventions for plugin layout to avoid putting
unneeded files to the build result.
Change-Id: I006aefed5406871cb93070e11d24553839f1c525
Closes-Bug: #1436828