eclipse-jdt / eclipse-jdt/eclipse.jdt.core

some Junit Tests report negative test time

Open
#1,681 2 comments 0 reactions 0 assignees View on GitHub
test
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 10h
Merged PRs (30d)
49

Description

```
name="test004_classExtends - 17" time="-1.701317522017E9" />
name="test005_classTypeParameterBound - 17" time="-1.701317522033E9" />
name="test001a_classTypeParameterDifferingRetentions - 17" time="-1.701317521986E9" />
name="test001_classTypeParameter - 17" time="-1.701317521986E9" />
name="test009_methodReceiver - 11" time="-1.701317315669E9" />
name="test011_throws - 11" time="-1.701317315684E9" />
name="testBug548596 - 11" time="-1.7013173157E9" />
name="test004_classExtends - 11" time="-1.701317315622E9" />
name="test007_field - 11" time="-1.701317315653E9" />
name="test012_annotationMethodReturn - 17" time="-1.701317522095E9" />
name="test009_methodReceiver - 17" time="-1.701317522064E9" />
name="test012_annotationMethodReturn - 11" time="-1.7013173157E9" />
name="test006_methodTypeParameterBound - 11" time="-1.701317315637E9" />
name="test003_classExtends - 11" time="-1.701317315622E9" />
name="test007_field - 17" time="-1.701317522048E9" />
name="test001_classTypeParameter - 11" time="-1.701317315591E9" />
name="test011_throws - 17" time="-1.701317522095E9" />
name="test001a_classTypeParameterDifferingRetentions - 11" time="-1.701317315591E9" />
name="test008_methodReturn - 11" time="-1.701317315669E9" />
name="test010_methodFormalParameter - 17" time="-1.70131752208E9" />
name="test006_methodTypeParameterBound - 17" time="-1.701317522033E9" />
name="testBug548596 - 17" time="-1.701317522111E9" />
name="test005_classTypeParameterBound - 11" time="-1.701317315637E9" />
name="test003_classExtends - 17" time="-1.701317522017E9" />
name="test010_methodFormalParameter - 11" time="-1.701317315684E9" />
name="test008_methodReturn - 17" time="-1.701317522064E9" />
name="test002_methodTypeParameter - 17" time="-1.701317522002E9" />
name="test002_methodTypeParameter - 11" time="-1.701317315606E9" />
```

Contributor guide

Open the contributing guide

Research direction

Start by locating the JUnit XML reporting path and the tests named in the reported output, then inspect how their elapsed times are produced. Reproduce the negative values and trace the timing data through report generation. Done means the affected tests no longer report negative durations and a regression test covers the case.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.