-
-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle the
unknown-op
status from test commands.
Calva currently fails silently when the test commands fail due to the unknown-op status. Here we handle that error and show a warning message when it occurs. This doesn't address the root cause of the issue, but it will help users to understand the problem. This will help to debug #1269
- Loading branch information
1 parent
3377305
commit 5c844d2
Showing
3 changed files
with
125 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
// https://github.com/clojure-emacs/cider-nrepl/blob/a740583c3aa8b582f3097611787a276775131d32/src/cider/nrepl/middleware/test.clj#L45 | ||
export interface TestSummary { | ||
ns: number; | ||
var: number; | ||
test: number; | ||
pass: number; | ||
fail: number; | ||
error: number; | ||
}; | ||
|
||
// https://github.com/clojure-emacs/cider-nrepl/blob/a740583c3aa8b582f3097611787a276775131d32/src/cider/nrepl/middleware/test.clj#L97-L112 | ||
export interface TestResult { | ||
context: string; | ||
index: number; | ||
message: string; | ||
ns: string; | ||
type: string; | ||
var: string; | ||
expected?: string; | ||
'gen-input'?: string; | ||
actual?: string; | ||
diffs?: unknown; | ||
error?: unknown; | ||
line?: number | ||
file?: string; | ||
} | ||
|
||
// https://github.com/clojure-emacs/cider-nrepl/blob/a740583c3aa8b582f3097611787a276775131d32/src/cider/nrepl/middleware/test.clj#L45-L46 | ||
export interface TestResults { | ||
summary: TestSummary; | ||
results: { | ||
[key: string]: { | ||
[key: string]: TestResult[] | ||
} | ||
} | ||
'testing-ns'?: string | ||
'gen-input': unknown | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.