-
Notifications
You must be signed in to change notification settings - Fork 104
Coq: run silently and explicitly Show when necessary - second attempt #762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
faeaf21
f87fdda
1e57bba
41d0e20
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -200,6 +200,8 @@ For example, COMMENT could be (*test-definition*)" | |
|
|
||
|
|
||
| (ert-deftest 020_coq-test-definition () | ||
| ;; There are no infomsgr when running silent. | ||
| :expected-result :failed | ||
| "Test *response* output after asserting a Definition." | ||
| (coq-fixture-on-file | ||
| (coq-test-full-path "test_stepwise.v") | ||
|
|
@@ -366,6 +368,9 @@ For example, COMMENT could be (*test-definition*)" | |
|
|
||
| (ert-deftest 080_coq-test-regression-show-proof-stepwise() | ||
| "Regression test for the \"Show Proof\" option" | ||
| ;; When running silent, the Show Proof command is issued, but its | ||
| ;; output is not (yet) kept in the response buffer. | ||
| :expected-result :failed | ||
| (coq-fixture-on-file | ||
| (coq-test-full-path "test_stepwise.v") | ||
| (lambda () | ||
|
|
@@ -392,6 +397,10 @@ For example, COMMENT could be (*test-definition*)" | |
|
|
||
|
|
||
| (ert-deftest 090_coq-test-regression-Fail() | ||
| ;; When running silent, the message about indeed failing is not | ||
| ;; shown. One might fix this test by checking that there is no | ||
| ;; error, which would be shown without Fail. | ||
| :expected-result :failed | ||
| "Test for Fail" | ||
| (coq-fixture-on-file | ||
| (coq-test-full-path "test_stepwise.v") | ||
|
|
@@ -413,6 +422,13 @@ For example, COMMENT could be (*test-definition*)" | |
| ;; (coq-should-buffer-regexp (regexp-quote "The command has indeed failed with message: Tactic failure: Cannot solve this goal.") "*response*") | ||
|
|
||
| (ert-deftest 091_coq-test-regression-Fail() | ||
| ;; XXX What is the difference between this test and | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The point in coq file is not the same: "(FailNoTrace)" vs "(FailTrace)". Concretelty the difference is the command
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK, it would be nice if the documentation in that file would describe what is tested there. |
||
| ;; 090_coq-test-regression-Fail? | ||
|
|
||
| ;; When running silent, the message about indeed failing is not | ||
| ;; shown. One might fix this test by checking that there is no | ||
| ;; error, which would be shown without Fail. | ||
| :expected-result :failed | ||
| "Test for Fail" | ||
| (coq-fixture-on-file | ||
| (coq-test-full-path "test_stepwise.v") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably test this when only one command is sent at a time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT there is only one command processed in this test. Even if you process one definition alone, there is no infomsg when running silent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. this behaviour is ok for me. I wonder if someone really care about this fonfirmation messages outside pure textual coqtop use.