-
Notifications
You must be signed in to change notification settings - Fork 10
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
Documentation/tutorial for ortac-stm plugin #141
Conversation
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.
This is a nice first draft, well done! I’m looking forward to seeing the complete version 😄
plugins/qcheck-stm/doc/dune
Outdated
(with-accepted-exit-codes | ||
0 |
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.
Is that required? It’s the default behaviour, I think.
plugins/qcheck-stm/doc/index.mld
Outdated
Now that [qcheck-stm] is able to generate an initial value for the type under | ||
test and its model, we can turn our attention to the functions we will want to | ||
test. Here is the example of the classic [set] function. You can see again the | ||
[checks] clause. Here again, it will be ignored by the tool. Then there is the |
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.
In that case, the checks
clause will be tested to check the function did raise an exception.
f605e75
to
a0bf180
Compare
24858e3
to
5677f4f
Compare
Thanks for doing this documentation. Writing nice documentation is a lot of work - so this is much appreciated! 🙏 I suggest toning the following a bit down:
First of all, no other tools have been released so this suggestion is not helpfui. In
one could support 0 or 1 arguments without hitting any QCheck-STM limitations AFAIK. More broadly, one can encode "multiple ts" in QCheck-STM, by, say letting the SUT type be a stack of actual
So this isn't a limitation of QCheck-STM as it is reasonably customizable.
In multicoretests Let me stress again that putting in limitations to get a first version working is only natural. 💯 😃 I object to listing these under To make this constructive, a suggestion could be to rewrite this to just say
|
Thanks for the review :-) I was not completely happy with this part, now I have an idea on how to modify it! |
7649205
to
89b969d
Compare
89b969d
to
d0e0159
Compare
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.
This reads very nicely, thank you!
I’ve added 4 commits containing fixes and suggestions in my stm-plugin-documentation-plus
branch. They are separate commits to help you review my proposed changes (the one for typos should really be reviewed with --color-words
!) but they would be better squashed in after.
I’ve also noticed that example_ghost
doesn’t contain what it is supposed to, I think.
val incompatible_type : char -> string t -> bool | ||
(*@ b = incompatible_type c t *) |
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.
The example is called example_ghost.mli
but this is not what it illustrates, so I’m a bit confused here. It was overwritten with the content of example_incompatible_type, it seems.
b668468
to
932262d
Compare
Documentation will always be up to date regarding error messages, as long as tests are run before the documentation is build.
Thank you for the updates, LGTM. CI is happy, so I merged. |
This PR is based on #152 in order to have to latest warning messages.