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

Support tests for files #482

Open
pdawyndt opened this issue Dec 11, 2023 · 0 comments
Open

Support tests for files #482

pdawyndt opened this issue Dec 11, 2023 · 0 comments
Labels
dsl enhancement New feature or request

Comments

@pdawyndt
Copy link
Contributor

pdawyndt commented Dec 11, 2023

TESTed has a fixed list of predefined output channels (stdout, return, exit_code) but may also allow to specify additional output channels to check additional side-effects of running a submission.

The first use case I encountered is file checking. There are actual two use cases I already encountered:

  • check if given file is not modified (assignments"om de hoek (opgave)" and "examenfeedback" in series 08 of the Computergebruik repo)
  • check if a file was produces with an expected content (assignment "examenfeedback" in series 08 of the Computergebruik repo)

The main difference is that in the first case the student should only get a message when the file has been tampered with (as the content of the file is given), whereas in the second case (part of) the file content should be displayed in the feedback table. In latter case, the expected file content might be included in the test specification (for short files) or as a file reference (for long files), as was also suggested for stdin (#479).

Some support for file comparison might be included in TESTed itself: check if file is not modified; show difference between expected and actual file content (for short files).

@niknetniko niknetniko added enhancement New feature or request dsl labels Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dsl enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants