Pie Logo
Automated Testing
by Tomas Trescak

PresentationInteractive, narrated presentation of the section content.

ContentDetailed description of the section content.

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!

Discuss with OthersAsk questions, share your thoughts, and discuss with other learners.

Loading discussion ...
SkillPies.com
Introduction
🍰 Player
💼 Editor
Clara - Python
Clara - Typescript
Blog
New Structure Admin
Automated Testing
    Pie Logo
    Automated Testing
    by Tomas Trescak

    PresentationInteractive, narrated presentation of the section content.

    ContentDetailed description of the section content.

    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!

    Discuss with OthersAsk questions, share your thoughts, and discuss with other learners.

    Loading discussion ...
    SkillPies.com
    Introduction
    🍰 Player
    💼 Editor
    Clara - Python
    Clara - Typescript
    Blog
    New Structure Admin
    Automated Testing

    No hints available.

    No hints available.

    Pie Logo
    Automated Testing
    by Tomas Trescak
    Pie Logo
    Automated Testing
    by Tomas Trescak
    SkillPies.com
    Introduction
    🍰 Player
    💼 Editor
    Clara - Python
    Clara - Typescript
    Blog
    New Structure Admin
    Automated Testing
    SkillPies.com
    Introduction
    🍰 Player
    💼 Editor
    Clara - Python
    Clara - Typescript
    Blog
    New Structure Admin
    Automated Testing