bytebang / vpl-junit

Run and grade JUnit testswithin the Virtual Programming Lab Plugin for Moodle
GNU General Public License v3.0
9 stars 5 forks source link

Display of multiple lines of a test case result needed #1

Closed doyleLai closed 4 years ago

doyleLai commented 4 years ago

It is a great project that help teachers a lot!! However, due to unknown reason, the Comments tab in the Edit page or the assessment report can only display the first line of the result of each test case. Student role is unable to view the Execution tab in the Edit page. Therefore, if a test case failed and the value contains multiple lines, students will not be able to see the expected and the actual value.

In the picture, you can see the first test case failed. The report ends at \n character and the rest of the contents are not displayed. Untitled .

It would be great if this can be fixed.

bytebang commented 4 years ago

I can reproduce this behavior. The full result (with all lines) can always be seen in the description pane (below the comments).

The reason why this was implemented is, that the comments are not flooded with information. (Usually the first line of a stacktrace gives a meaningful hint).

Am I missing something, or do you have another usecase where you need this feature ?

doyleLai commented 4 years ago

Oh, I guess the behaviour differed in different Moodle. Because the description pane in my Moodle always displays the description of the activity. If the description is empty, the pane just doesn't appear. Untitled Untitled2

I guess some settings are overriding the content of description pane?

doyleLai commented 4 years ago

Just realised the feature is added. Thanks!