-
Notifications
You must be signed in to change notification settings - Fork 35
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
ABS tests #95
Comments
@odino: See I have created a POC for testing these scripts on branch I'm not sure how you integrate this with Travis etc. in github, but it looks promising for driving external ABS script tests including using ABS Init Files, OS env variables, and sourced ABS scripts. Still not an answer for testing the ABS interactive REPL mode, but it seems to handle testing the scripting mode pretty well. And, another thought: maybe we could re-implement this using ABS instead of bash. This might give us better cross-platform testing capability as BATS is pretty-much Linux bash specific. The downside is that if we break ABS++ then ABS-- has to be stable for testing to work. |
I'll have a look, thanks :)
…On Sat, Feb 23, 2019 at 8:08 PM Erich (Rick) Arnold < ***@***.***> wrote:
@odino <https://github.com/odino>:
Take a look at the Bash Automated Testing System (BATS). This might be
useful for automating the testing of our ABS scripts in tests/*.abs.
See
https://github.com/bats-core/bats-core
https://testanything.org/
https://opensource.com/article/19/2/testing-bash-bats
I have created a POC for testing these scripts on branch bats-testing.
Check it out and take a look at my notes and test cases in
tests/test-abs.bats. In particular, note that the TAP format output will
be what you get when automation is running instead of the interactive
format seen in a terminal via $ bats tests/test-abs.bats. You can force
TAP format output in the terminal by using $ bats --tap
tests/test-abs.bats to see what the automation will see.
I'm not sure how you integrate this with Travis etc. in github, but it
looks promising for driving external ABS script tests including using ABS
Init Files, OS env variables, and sourced ABS scripts. Still not an answer
for testing the ABS interactive REPL mode, but it seems to handle testing
the scripting mode pretty well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#95 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAUC5AYtFTvKqpn2zxW8BD9AsiI6GXY_ks5vQWeEgaJpZM4Zj5Rw>
.
|
Currently, we only test ABS' lexer, parser, evaluator and ability to build cross-platform
At some point, we should definitely have a set of scripts to ensure BC is not broken when releasing a new version of ABS.
What I'm thinking is something like:
abs $script
, then compare the resultThis would allow understanding whether some feature is introducing backward-incompatible changes as well as let us really test ABS cross-platform.
The text was updated successfully, but these errors were encountered: