tests2doc
v1.0.1
Published
Export your test cases from .js or .feature files to Google Docs Sheets
Downloads
15
Maintainers
Readme
tests2doc
Export your test cases from .js or .feature files to Google Docs Sheets.
Supported versions
- 8.x
- 9.x
- 10.x
- 11.x
- 12.x
Installation
npm install tests2doc --save
Importing and configuring
You will need to enable the Google Sheets API for the project in order to access Spreadsheets - see instructions.
You can require tests2doc in your .js file and configure it like this:
const { exportTestCases } = require('tests2doc');
exportTestCases();Function exportTestCases returns an array of test cases and exports them to Google Sheets.
When launching the script (your .js file that contains exportTestCases();) 2 parametes should be provided:
CLIENT_SECRET_PATH- string with path to yourclient_secret.jsonfile - for example:CLIENT_SECRET_PATH='./secrets/client_secret.json'TESTS_FOLDER_PATH- string with path to yourtestsfolder - for example:TESTS_FOLDER_PATH='./src/tests'
So it will look like:
CLIENT_SECRET_PATH='./secrets/client_secret.json' TESTS_FOLDER_PATH='./src/tests' node index.jsThanks
If this script was helpful for you, please give it a ★ Star on github
