Teams for Education unit tests don't work with Nix

Bug description:
Whenever one of my Teams for Education excercise programs get upgraded to Nix, the Unit Tests feature appears to stop working, and asserts that nothing is being outputted in the “actual output”, when in reality there is an output.

Expected vs Current Behavior:
The unit tests should pass when the code is correct, however they fail while falsely asserting that the program isn’t outputting anything.

Steps to reproduce:

  1. Open an exercise through Teams for Education, one which has been created with Unit Tests.
  2. Refresh the page so that it automatically gets upgraded to Nix.
  3. Complete the program and run the unit tests.
  4. Unit tests will fail, while falsely asserting that there was nothing in the actual output.

Bug appears at this link: https://replit.com/@Chun-ICS3C-Sem1-2023-2024/Hello-World

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36

Replit Profile: https://replit.com/@mariogreco

Thank you.

Hello, this is a known issue and has been reported before:

Note that you are describing problems with Input Output Tests, not Unit Tests, though both are experiencing problems.

There are workarounds for both I/O tests and unit tests.
Open this post for the fix for I/O tests. This fix also fixes unit tests.

2 Likes