Wednesday, February 11, 2009

ah hah! why IDEA sometimes doesn't let you run individual tests

I've wondered for a while why idea lets you click on some tests in
order to run them individually whereas in other test files it will
only let you run the whole thing. It's really annoying. Well I finally
just noticed why: if not all your methods start with test_ (or setup
and teardown I suppose) then it won't let you run individual tests!
I'm not sure why, but I'd like to find out, and it's good to know. If
you have helpers in the test, IDEA won't find the individual tests!

--
Love,
Fritz

1 comment:

  1. i have the same issue...about 25% of the time. i haven't found a consistent mis-behavior that causes this problem.

    -N.

    ReplyDelete