Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with feature implementation #1483

Closed
helenocampos opened this issue Sep 27, 2017 · 3 comments
Closed

Help with feature implementation #1483

helenocampos opened this issue Sep 27, 2017 · 3 comments

Comments

@helenocampos
Copy link

Hi guys, first of all, I'm sorry for creating a topic in the issues section. I did so because I didn't find the right place.

I'm trying to implement a feature using JUnit as part of my master thesis research.
What I'm trying to do is to allow the execution of ordered test methods from different test classes.
Example:
Class A has methods mA1, mA2 and mA3.
Class B has methods mB1, mB2, mB3.
Class C has methods mC1, mC2.
So I want to execute: mC1, mB2, mC2, mA3 ....
The ordering feature is not the problem. My problem is the method execution.

I've spent the last month trying to figure out how JUnit works internally but I haven't made much progress.

I want to ask how would you guys approach this problem/implementation.
Thanks!

@kcooney
Copy link
Member

kcooney commented Sep 27, 2017

This would be really hard to do in our current code base. Is there a compelling reason to support this behavior?

There is a pull that provides support for specifying test method order within a single class. See #1130

@helenocampos
Copy link
Author

The reason I would like to implement this is because I'm researching about Test Case Prioritization.
In short, I've found some evidence that prioritizing test cases at the test method granularity may provide a speed-up in the fault revealing speed. This might be interesting in the regression testing scenario, where in some cases, the suite execution takes long time, delaying feedback about faults.

I've seen the specific ordering implemetation, but it solves the problem only partially.
I appreciate any ideas on how I could achieve the arbitrary method execution. Thanks!

@kcooney
Copy link
Member

kcooney commented Sep 28, 2017

@kcooney kcooney closed this as completed Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants