https://github.com/marketionist/tests2doc
Export your test cases from .js or .feature files to Google Docs Sheets
https://github.com/marketionist/tests2doc
export-test-cases-to-google-docs export-tests-to-google-spreadsheets link-tests-to-google-docs test-documentation tests-to-doc tests2doc
Last synced: 3 months ago
JSON representation
Export your test cases from .js or .feature files to Google Docs Sheets
- Host: GitHub
- URL: https://github.com/marketionist/tests2doc
- Owner: Marketionist
- License: mit
- Created: 2018-10-28T04:29:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T01:36:21.000Z (over 2 years ago)
- Last Synced: 2025-03-12T17:46:31.711Z (3 months ago)
- Topics: export-test-cases-to-google-docs, export-tests-to-google-spreadsheets, link-tests-to-google-docs, test-documentation, tests-to-doc, tests2doc
- Language: JavaScript
- Homepage:
- Size: 126 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tests2doc
[](https://travis-ci.org/Marketionist/tests2doc)
[](https://www.npmjs.com/package/tests2doc)
[](https://github.com/Marketionist/tests2doc/blob/master/LICENSE)Export your test cases from `.js` or `.feature` files to Google Docs Sheets.
## Supported versions
[Node.js](http://nodejs.org/):
- 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](https://cmichel.io/how-to-access-google-spreadsheet-with-node/).You can require tests2doc in your `.js` file and configure it like this:
```javascript
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 your `client_secret.json` file - for example:```bash
CLIENT_SECRET_PATH='./secrets/client_secret.json'
```- `TESTS_FOLDER_PATH` - string with path to your `tests` folder - for example:
```bash
TESTS_FOLDER_PATH='./src/tests'
```So it will look like:
```bash
CLIENT_SECRET_PATH='./secrets/client_secret.json' TESTS_FOLDER_PATH='./src/tests' node index.js
```## Thanks
If this script was helpful for you, please give it a **★ Star**
on [github](https://github.com/Marketionist/tests2doc)