Eclipse plugin question - test order.

18 views
Skip to first unread message

Scott Stroz

unread,
Feb 11, 2012, 3:32:03 PM2/11/12
to mxu...@googlegroups.com
Is there a way to have the Eclipse plugin run tests in the order in which they appear in the test file rather than alphabetical order?

I saw that there was a checkbox for this in the preferences panel, but deselecting this did not change anything. The tests are still listed in the MXUnit tab in alphabetical order.

Marc Esher

unread,
Feb 12, 2012, 8:49:44 AM2/12/12
to mxu...@googlegroups.com
A follow up on this, for the future googlers:

Scott and I chatted on IM, and here's what I told him.

1) you need the latest plugin and framework. Scott had both.
2) you can't get "order of tests as they appear in the component",
because getMetadata() won't report them that way. It's a bug in CF.
3) Thus, to fully control the ordering, you use Ryan's Ordered Test
Decorator, which he contributed to the latest version of CF. It's
extremely simple to use, and it's described here:
http://blog.bittersweetryan.com/2012/01/using-new-orderedtestdecorator-in.html

Marc

> --
> You received this message because you are subscribed to the Google Groups
> "mxunit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mxunit/-/lSHU3YSxwVMJ.
> To post to this group, send email to mxu...@googlegroups.com.
> To unsubscribe from this group, send email to
> mxunit+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/mxunit?hl=en.

Reply all
Reply to author
Forward
0 new messages