Skip to content

Commit

Permalink
Merge pull request #16 from gemini-testing/fix/translate
Browse files Browse the repository at this point in the history
Translate help messages to english
  • Loading branch information
SwinX committed Mar 30, 2016
2 parents f1b01a4 + 319909b commit 9792f61
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ var _ = require('lodash'),
chalk = require('chalk'),
Hermione = require('./hermione'),
logger = require('./utils').logger,

defaults = require('./defaults'),

helpMessages = {
grid: _.template('URL селениум grid [${grid}]')(defaults),
baseUrl: _.template('Базовый URL беты [${baseUrl}]')(defaults),
waitTimeout: _.template('Время ожидания событий на странице [${waitTimeout}]')(defaults),
screenshotPath: _.template('Путь для хранения скриншотов [${screenshotPath}]')(defaults),
reporters: _.template('Используемые репортеры [${reporters}]')(defaults),
debug: _.template('Включить дебаг webdriver [${debug}]')(defaults),
conf: _.template('Путь к конфигу [${conf}]')(defaults),
browser: 'Запуск тестов в определенном браузере',
grid: _.template('Selenium grid URL [${grid}]')(defaults),
baseUrl: _.template('Page under test base URL [${baseUrl}]')(defaults),
waitTimeout: _.template('Default timeout for all `waitXXX` commands [${waitTimeout}ms]')(defaults),
screenshotPath: _.template('Screenshot save path [${screenshotPath}]')(defaults),
reporters: _.template('Reporters [${reporters}]')(defaults),
debug: _.template('Enable debug output [${debug}]')(defaults),
conf: _.template('Config path [${conf}]')(defaults),
browser: 'Run tests in specific browser',
grep: 'Filter tests matching string or regexp'
},
coercion = {
Expand Down Expand Up @@ -48,7 +48,7 @@ exports.run = function() {
.option('--grep <grep>', helpMessages.grep)
.allowUnknownOption()
.on('--help', function() {
logger.log(chalk.bold('Пример: \n'));
logger.log(chalk.bold('Example: \n'));
logger.log(chalk.green('$ hermione --baseUrl http://yandex.ru/search\n'));
});

Expand All @@ -69,10 +69,9 @@ exports.run = function() {
});
};

// TODO логироваль все параметры, включая кастомные
function logRunData(config) {
logger.log(chalk.green('==================================================='));
logger.log(chalk.green('Запускаем тесты ...'));
logger.log(chalk.green('Launching tests ...'));
logger.log(' reporters: %s', config.reporters.join(', '));
logger.log(' grid: %s', config.grid);
logger.log(' baseUrl: %s', config.baseUrl);
Expand Down

0 comments on commit 9792f61

Please sign in to comment.