Skip to content

Commit

Permalink
Merge pull request #8 from Savostytskyi/issue_188_fix
Browse files Browse the repository at this point in the history
issue_188 fixed, root item initialization moved before parent
  • Loading branch information
avarabyeu committed Jan 5, 2018
2 parents fe95282 + 5bbb182 commit 91e255a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,12 @@ protected void afterLaunch() {
*/
protected void beforeFeature(Feature feature) {
StartTestItemRQ rq = new StartTestItemRQ();
Maybe<String> root = getRootItemId();
rq.setDescription(Utils.buildStatementName(feature, null, AbstractReporter.COLON_INFIX, null));
rq.setName(currentFeatureUri);
rq.setTags(extractTags(feature.getTags()));
rq.setStartTime(Calendar.getInstance().getTime());
rq.setType(getFeatureTestItemType());

Maybe<String> root = getRootItemId();
if (null == root) {
currentFeatureId = RP.get().startTestItem(rq);
} else {
Expand Down

0 comments on commit 91e255a

Please sign in to comment.