Skip to content
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

No output testing #7

Open
MCJOHN974 opened this issue Jul 1, 2022 · 2 comments
Open

No output testing #7

MCJOHN974 opened this issue Jul 1, 2022 · 2 comments

Comments

@MCJOHN974
Copy link
Contributor

In github jobs we just test that eo program correctly compiled and runs without failure. But we don't test that output is correct. @yegor256 if you think that this additional check is proper to this repo I added it in #6

@Graur
Copy link
Contributor

Graur commented Jul 1, 2022

@MCJOHN974 Good idea, but I think it will be better to do it in more canonical way: to add app-test.eo in test folder of sandbox project and test output like this:

[] > output-test
  assert-that > @ 
    app * 9
    $.equal-to
      "9th Fibonacci number is 34"

@MCJOHN974
Copy link
Contributor Author

@Graur as described here EO has no exceptions, but github actions need non zero return code to failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants