-
Notifications
You must be signed in to change notification settings - Fork 163
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
Unable to execute a single test in latest IntelliJ (13.1.2) #18
Comments
aaschmid
added a commit
that referenced
this issue
Apr 25, 2014
Fix issue #18: Unable to execute a single test in latest IntelliJ
aaschmid
added a commit
that referenced
this issue
Apr 25, 2014
aaschmid
added a commit
that referenced
this issue
Apr 25, 2014
I'm having this issue with IntelliJ IDEA 14 CE (14.0.1 and 14.1.4); junit-dataprovider 1.9.4; junit 4.12;
|
Hi @spaceCamel, thanks for reporting this. Can you please open a new issue if the exception is still raised? For me, though, the following example works using junit-dataprovider v1.9.4 and IntelliJ IDEA 14.1.3: package com.tngtech.test.java.junit.dataprovider;
import com.tngtech.java.junit.dataprovider.DataProvider;
import com.tngtech.java.junit.dataprovider.DataProviderRunner;
import com.tngtech.java.junit.dataprovider.UseDataProvider;
import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@RunWith(DataProviderRunner.class)
public class MyTest {
@Test
@UseDataProvider(value = "data_table")
public void testMethodName(String input) {
System.out.println(input);
}
@DataProvider
public static List<List<Object>> data_table() {
return Arrays.asList(
Arrays.<Object>asList("test1"),
Arrays.<Object>asList("test2")
);
}
} Regards, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since the latest update of IntelliJ (13.1.2), I can no longer execute a single test within a class.
Example:
Below is the exception I get when trying to execute the test:
However, executing the whole test class works. I'm not sure if this can be fixed in the junit-dataprovider.
The text was updated successfully, but these errors were encountered: