Open kevgo opened 2 years ago
Client sends things like this:
{}
or
{ "file": "foo.js" }
{ "file": "foo.js", "line": "12" }
{ "run": "make unit" }
The server performs pattern matching on the data structure sent. This means we don't need the command field when testing individual files.
command
Corresponding server config file:
{ "actions": [ { "when": {}, "then": "make test", }, { "when": { "file": "**/*_test.go" }, "then": "go test {{file}}", }, { "when": { "file": "**/*.test.ts", "line": "*" }, "then": "mocha {{file}}:{{line}}", } ], "options": {} }
Even simpler wire protocol:
# sending a newline runs all tests # test this file: test/foo.ts # test this file at this line: bar.test.ts:55 # run this custom command: `make unit` run: make unit
Client sends things like this:
or
or
or
The server performs pattern matching on the data structure sent. This means we don't need the
command
field when testing individual files.Corresponding server config file: