reportportal / agent-java-cucumber

Cucumber JVM version [1.0.0; 2.0.0) adapter
Apache License 2.0
26 stars 16 forks source link

cover situation when there is no tests in whole execution #19

Closed SiarheiDubovik closed 6 years ago

SiarheiDubovik commented 6 years ago

Problem details:

  1. Particular tags are specified in Cucumber options.
  2. There is no Scenarios, which matched these tags
  3. Execution starts and goes to com.epam.reportportal.cucumber.ScenarioReporter#afterLaunch where we perform Utils.finishTestItem(RP.get(), rootSuiteId.get());
  4. Which means we start "Root User Story" item and immediately try to finish them
  5. As result we have error:

Error Message: Test item status is ambiguous. There is no status provided from request and there are no descendants to check statistics for test item id '5b581e9e8a7f71041c4e200c' Error Type: AMBIGUOUS_TEST_ITEM_STATUS

For resolving this I just skip afterLaunch methods if currentFeatureUri value is not initialized (it can be only if no executed scenarios in run)

ghost commented 6 years ago

DeepCode found the following issues:

Critical: 0 Warning: 0 Info: 0

Priority breakdown:

Security Defect API Anomaly Rename Lint Info
Critical 0 0 0 0 0 0 0
Warning 0 0 0 0 0 0 0
Info 0 0 0 0 0 0 0

Most affected files:

File Critical Warning Info

See detailed analysis.