gogenswagger generates signature and boiler plate code for the test cases using the swagger JSON file.
Clone the project
git clone https://github.com/Mussabaheen/gogenswagger.gitGo to the project directory
cd gogenswaggerresolve go.mod file
go mod tidyrun the project
go run main.go cd gogenswagger
make build
./build/gogenswagger [flags] -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 Language | Description |
|---|---|
| Go | *.go extension |
| Javascript | *.js extension (chai) |
Contributions are always welcome!
Feel free to report an issue, make improvement suggestions or open a pull request
For support, email at mussabaheen@gmail.com