cb109 / maxtest

:chart_with_upwards_trend: MAXScript unittesting framework.
BSD 2-Clause "Simplified" License
8 stars 1 forks source link

Testcase Markers #4

Open cb109 opened 8 years ago

cb109 commented 8 years ago

If would be great to have some mechanism to mark tests to be skipped, expected to fail or slow for two things:

It would have rely on some sort of convention so it can be parsed and associated properly, while it would be good to still have valid maxscript code. For example it could be something like this:

struct TestMarkers (
    --@maxtest.skip
    fn test_this_needs_fixing = (
        -- ...
    ),

    --@maxtest.slow
    fn test_this_is_really_slow = (
        -- ...
    ),

    --@maxtest.xfail
    fn test_this_is_expected_to_fail = (
        -- ...
    )
)