You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
A couple of days before ataru reminded us, that it is checking code samples in a file in a random order, which means, that checking the same file, it can show one or more errors in the output, depending if there was any dependency between code samples.
For example, in test/resources/test_markdown.mdais defined in upper code sample and a is used in the last code sample of the file, without defining it again. Therefore ataru exits with one error (always there) or two errors (NameError).
Possible solutions:
have all the tests run in a descendimng order (critic - you loose the independency of tests, and sharing the same environment by all the code snippets can lead to unexpected behaviour)
having a setup code:
a. having it on the top of the markdown file flagged in a way, e.g.
#setupdefblaend
or
defblaend
b. in the ataru_setup.rb file, that has to be written by the user.
Another question is - do I want the setup code sample to be visible for ALL other or only chosen code samples? (and how would that be possible).
A couple of days before ataru reminded us, that it is checking code samples in a file in a random order, which means, that checking the same file, it can show one or more errors in the output, depending if there was any dependency between code samples.
For example, in
test/resources/test_markdown.mdais defined in upper code sample andais used in the last code sample of the file, without defining it again. Therefore ataru exits with one error (always there) or two errors (NameError).Possible solutions:
a. having it on the top of the markdown file flagged in a way, e.g.
or
b. in the ataru_setup.rb file, that has to be written by the user.
Another question is - do I want the setup code sample to be visible for ALL other or only chosen code samples? (and how would that be possible).