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

Provide a way to execute a test method for a test case or all the generated test cases #125

Closed
dakusui opened this issue Sep 9, 2017 · 2 comments
Assignees
Milestone

Comments

@dakusui
Copy link
Owner

dakusui commented Sep 9, 2017

From an IDE such as IntelliJ, you cannot run a test method individually. This makes quite painful to implement test code with JCUnit when we have multiple test methods in a test class and some of (or all of) them are time consuming. A user needs to modify (give @ignore annotation or comment out) their test codes to suppress the other methods than the one he/she is working on at the time.

Although this is an IntelliJ side's issue, I believe, we should have some way to workaround it.

We should be able to do it by following code.

  new JUnit4Runner.Builder(QuadraticEquationExample.class)
    .testCase(1)
    .methodName("performScenario2")
    .build()
  .run();
@dakusui dakusui self-assigned this Sep 9, 2017
dakusui added a commit that referenced this issue Sep 12, 2017
dakusui added a commit that referenced this issue Sep 12, 2017
@dakusui
Copy link
Owner Author

dakusui commented Sep 12, 2017

JUnit4Runner is found in package com.github.dakusui.jcunit8.runners.junit4.

@dakusui dakusui modified the milestones: 0.8.13, 0.8.14 Sep 12, 2017
@dakusui dakusui closed this as completed Sep 12, 2017
dakusui added a commit that referenced this issue Sep 12, 2017
@dakusui dakusui reopened this Sep 12, 2017
@dakusui
Copy link
Owner Author

dakusui commented Sep 12, 2017

Reopened to update README.md.

@dakusui dakusui closed this as completed Sep 12, 2017
@dakusui dakusui reopened this Sep 12, 2017
dakusui added a commit that referenced this issue Sep 12, 2017
* Issue-#125: Provide a way to run only specified test method for all/specified test case(s).

* Issue-#125: Update README.md
@dakusui dakusui closed this as completed Sep 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant