Modify

Opened 7 years ago

Closed 7 years ago

#16535 closed defect (fixed)

Travis CI giving error

Reported by: Biswesh Owned by: Biswesh
Priority: normal Milestone:
Component: Plugin pt_assistant Version:
Keywords: Cc: michael2402, Don-vip

Description (last modified by Biswesh)

My last commit met with build error in Travis CI
https://travis-ci.org/JOSM/pt_assistant/builds/409212728

Although it fails in test cases but they pass all the cases on my system.

I have attached here which I got the result on running gradle test --stacktrace.

I don't have much knowledge about the error. What could be the possible reason?

Attachments (1)

error.txt (12.8 KB ) - added by Biswesh 7 years ago.
Result of gradle test --stacktrace.

Download all attachments as: .zip

Change History (8)

by Biswesh, 7 years ago

Attachment: error.txt added

Result of gradle test --stacktrace.

comment:1 by Biswesh, 7 years ago

Description: modified (diff)

comment:2 by michael2402, 7 years ago

Can you add this to your build.gradle?

test {
    testLogging {
        exceptionFormat = 'full'
    }
}

This shows the full exception stack trace and will show you which method is missing.

Btw, the stacktrace you attached is the trace on gradle side. It is always good to combine --stacktrace with --info, then you see the actual cause why that task threw an exception.

Last edited 7 years ago by michael2402 (previous) (diff)

comment:4 by Biswesh, 7 years ago

It is an error due to JOSMTestRules which is used as @Rule in the unit tests. Was it depreciated?

Its use :

@Rule

public JOSMTestRules rules = new JOSMTestRules().preferences().platform();

comment:5 by floscher, 7 years ago

You have to update the josmCompileVersion. The dependency josm-unittest is only available as "SNAPSHOT" and will therefore become incompatible with older JOSM versions from time to time. The minJosmVersion does not need to be updated, since josm-unittest is only used for testing not when compiling.

comment:6 by anonymous, 7 years ago

Thanks Florian for the help. I am now closing the issue.

comment:7 by anonymous, 7 years ago

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Biswesh.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.