https://github.com/mussabaheen/gogenswagger
gogenswagger will generate signatures for the test case using swagger json file
https://github.com/mussabaheen/gogenswagger
code-generator go gogenerate golang integration-testing swagger testing
Last synced: 3 months ago
JSON representation
gogenswagger will generate signatures for the test case using swagger json file
- Host: GitHub
- URL: https://github.com/mussabaheen/gogenswagger
- Owner: Mussabaheen
- License: mit
- Created: 2022-10-06T09:48:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T16:17:38.000Z (about 3 years ago)
- Last Synced: 2025-03-22T07:53:27.461Z (about 1 year ago)
- Topics: code-generator, go, gogenerate, golang, integration-testing, swagger, testing
- Language: Go
- Homepage:
- Size: 4.01 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# gogenswagger
gogenswagger generates signature and boiler plate code for the test cases using the swagger JSON file.
## Run Locally
Clone the project
```bash
git clone https://github.com/Mussabaheen/gogenswagger.git
```
Go to the project directory
```bash
cd gogenswagger
```
resolve `go.mod` file
```bash
go mod tidy
```
run the project
```bash
go run main.go
```
## Creating build
```bash
cd gogenswagger
make build
./build/gogenswagger [flags]
```
## Flags
```bash
-json string
Specify the Swagger JSON file path
-language string
Specify the language extension, currently supported languages js and go (default "go")
-output string
Specify the path for generated test packages (default "./generated")
```
## Supported Programming Languages
| Supported Language | Description |
| ------------------ | ----------------------- |
| Go | `*.go` extension |
| Javascript | `*.js` extension (chai) |
## Contributing
Contributions are always welcome!
Feel free to report an issue, make improvement suggestions or open a pull request
## License
[MIT](https://choosealicense.com/licenses/mit/)
## Support
For support, email at mussabaheen@gmail.com