https://github.com/miso-develop/convert-jestcode-to-testspec-csv
Convert jest source code to test specification csv.
https://github.com/miso-develop/convert-jestcode-to-testspec-csv
csv jest
Last synced: about 2 months ago
JSON representation
Convert jest source code to test specification csv.
- Host: GitHub
- URL: https://github.com/miso-develop/convert-jestcode-to-testspec-csv
- Owner: miso-develop
- License: mit
- Created: 2021-03-08T02:31:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-08T02:32:07.000Z (over 5 years ago)
- Last Synced: 2025-03-28T23:46:20.897Z (about 1 year ago)
- Topics: csv, jest
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# convert-jestcode-to-testspec-csv
Convert jest source code to test specification csv.
## Install
```
git clone xxx
npm i
```
## Usage
Specify a test file as the argument of node and execute it.
```
cd
node dist >> testspec.csv
```
example.
```
node dist example/example.test.ts
node dist example/example.test.ts >> example.test.ts.csv
```
### Windwos batch
We have prepared a [Windwos batch](./jest2csv.cmd) to convert multiple test files under a directory.
By using the directory where the test files are stored as an argument, the csv-converted data of the test files under the directory will be output to the ./export directory.
It also converts the data from UTF-8 to Shift-JIS so that it can be opened directly in Excel.
```
jest2csv.cmd
```
example.
```
jest2csv.cmd .\example
```
## License
[MIT](./LICENSE)