hyperskill / hs-test

A framework that simplifies testing educational projects for Hyperskill. It is built on top of JUnit.
30 stars 10 forks source link

Detect repetitive or extremely long lines in stdout and show possible infinite loop feedback #95

Closed aaaaaa2493 closed 3 years ago

aaaaaa2493 commented 4 years ago

One of the following possibilities should trigger Error in text #X Infinite loop detected

  1. 500 lines printed without requesting an input
  2. 5000 symbols printed without requesting an input
  3. last 100 lines contain repetitive lines: 3.1. 100 repetitions of the same line 3.2. 50 repetitions of the two same lines 3.3. 33 repetitions of the three same lines 3.4-3.9. The same 3.10. 10 repetitions of the same ten lines
aaaaaa2493 commented 4 years ago

Should be an option to disable such feedback in case some stage actually contains a lot of output

aaaaaa2493 commented 3 years ago

Fixed in 59d04cc623258bee875c2288bee0491f7cc4237e