We have added the functionality to test student code using automated tests. Currently, we support Typescript and Python. If all tests pass, the exercise is marked as completed! You can add new test files in the section file management, under File → New Test File.
The typescript adopts the well-established notation from TDD using it, describe and other TDD elements. The assertion library contains basic assets, and you can use Intellisense to see all matchers. Please leave us a comment if you would like to create some other matchers. The test result is displayed both in console and in UI.
Python testing uses the well-established unit test package. Currently, we only support synchronous tests. Please note that tests automatically turn off the automatic conversion of asynchronous methods (@autoasync)
Of you have any questions or ideas for improvement, please do not hesitate to leave a comment below! Enjoy testing!