Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't know if they exist in this library but in Python I would use subtests:

    def test_ordered_integration()
        # setup
        with subtest("thing one"):
            assert something
        with subtest("thing two"):
            assert something_else
        # etc


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: