issues
search
mac641
/
gotep
gotep is a terminal-based REST client designed to execute HTTP tests based on the Jetbrains HTTP-Client.
MIT License
2
stars
0
forks
source link
As gotep developer I want all test files to be parsed within golang itself.
#2
Closed
mac641
closed
2 years ago
mac641
commented
2 years ago
Acceptance criteria
http files based on the Jetbrains specification are being parsed without issues and return a object / list of objects which can be used to send http request tests
json configs are being parsed, preferably using viper
Helpful info
antlr explained:
https://blog.gopheracademy.com/advent-2017/parsing-with-antlr4-and-go/
antlr docs - get started with go:
https://github.com/antlr/antlr4/blob/master/doc/go-target.md
how to set up antlr grammar debugging:
https://github.com/mike-lischke/vscode-antlr4/blob/master/doc/grammar-debugging.md#actions-and-semantic-predicates
predefined http request grammar:
https://github.com/antlr/grammars-v4/blob/master/http/http.g4
predefined json4 grammar:
https://github.com/antlr/grammars-v4/blob/master/json/JSON.g4
predefined json5 grammar:
https://github.com/antlr/grammars-v4/blob/master/json5/JSON5.g4
predefined ecam- / java- / typescript and jsx grammars:
https://github.com/antlr/grammars-v4/tree/master/javascript
HTTP-Client definition by Jetbrains:
https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html
HTTP-Client specification:
https://github.com/JetBrains/http-request-in-editor-spec/blob/master/spec.md
ASCII to Unicode table:
http://www.endmemo.com/unicode/ascii.php
Literature
antlr 4 definitive book:
https://learning.oreilly.com/library/view/the-definitive-antlr/9781941222621/f_0055.xhtml#sec.call-graph
Examples
incomplete:
https://github.com/char0n/http-request-in-editor/tree/master/src
seems to be complete, but implemented in Kotlin:
https://github.com/restcli/restcli
Jetbrains Youtrack issue
Acceptance criteria
Helpful info
Literature
Examples
Jetbrains Youtrack issue