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

Capture user output #10

Open
ErikSchierboom opened this issue Apr 14, 2021 · 0 comments
Open

Capture user output #10

ErikSchierboom opened this issue Apr 14, 2021 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@ErikSchierboom
Copy link
Member

Each test case in the results.json file has the option of having an output field. This field is used when students are using the in-browser editor to help them with "debugging" their code (as they won't have an actual debugger available in the browser).
See the spec for more information.

You may either capture content that is output through normal means (e.g. puts in Ruby, print in Python or Debug.WriteLine in C#), or you may provide a method that the user may use (e.g. the Ruby Test Runner provides a user with a globally available debug method that they can use, which has the same characteristics as the standard puts method.

There is existing code to write the field (albeit with a default value) in https://github.com/exercism/scala-test-runner/blob/main/src/main/scala/Application.scala#L62

@ErikSchierboom ErikSchierboom added the help wanted Extra attention is needed label Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant