hermione-gemini-migrator
Plugin for hermione for migration gemini tests.
Install
npm i -D hermione-gemini-migrator
Usage
Set options for the plugin in your hermione config:
moduleexports = // ... plugins: 'hermione-gemini-migrator': enabled: false filePath { } commandReplacers: code { const inputSuite outputTestCollection inputFilePath outputFilePath inputScreenPaths outputScreenPaths config utils } = hermionegeminiMigrator; // Pring filepathh console; // Print input test names utils; // Print output test names const testDict = {}; outputTestCollection; // ...}
Run hermione with cli option (if enabled: false
):
npx hermione --gemini-migrate
Options
Option | Default | Description |
---|---|---|
enabled |
false |
Option for enable/disable the plugin. |
geminiConfig |
'.gemini.js' |
Path to Gemini config. |
inputPatterns |
'**/*.gemini.js' |
Patterns for searching gemini files. Read more: fast-glob |
filePathReplacer |
filePath => filePath.replace(/gemini/g, 'hermione') |
Function for replacing substring in test filePath . |
browserIdReplacer |
browserId => browserId |
Function for replacing substring in browserId . |
commandReplacers |
{} |
Object with functions for replacing default command to custom in hermione tests. |
codeFormatter |
code => code |
Function for formatting code before writting. For example: prettier |
before |
hermione => {} |
Async or sync function that is called before writting all test files. |
beforeEach |
hermione => {} |
Async or sync function that is called before writting each test file. |
afterEach |
hermione => {} |
Async or sync function that is called after writting each test file. |
after |
hermione => {} |
Async or sync function that is called after writting all test files. |
Licence
MIT