Automated Testing
by Tomas Trescak· Blog

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.

Typescript

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.

 

Typescript Testing

 

Python

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!

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. TYPESCRIPT 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.   [https://skillpies.s3.ap-southeast-2.amazonaws.com/courses/9CgAuQQn5VZiC8HL4y/sections/t6HSDAfWWYYGUDutng/Screenshot%202024-04-04%20at%2013.36.16.png]Typescript Testing   PYTHON 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) [https://skillpies.s3.ap-southeast-2.amazonaws.com/courses/9CgAuQQn5VZiC8HL4y/sections/t6HSDAfWWYYGUDutng/image.png] Of you have any questions or ideas for improvement, please do not hesitate to leave a comment below! Enjoy testing!
Maggie

Discuss with Maggie
Use the power of generative AI to interact with course content

Maggie is a generative AI that can help you understand the course content better. You can ask her questions about the lecture, and she will try to answer them. You can also see the questions asked by other students and her responses.

Discuss with Others
Ask questions, share your thoughts, and discuss with other learners

Join the discussion to ask questions, share your thoughts, and discuss with other learners