[JIRA] (JENKINS-54920) Refactor AboutJenkins class

3 views
Skip to first unread message

jsoref+jenkins@gmail.com (JIRA)

unread,
Nov 28, 2018, 9:56:02 AM11/28/18
to jenkinsc...@googlegroups.com
Josh Soref created an issue
 
Jenkins / Bug JENKINS-54920
Refactor AboutJenkins class
Issue Type: Bug Bug
Assignee: Emilio Escobar
Components: support-core-plugin
Created: 2018-11-28 14:55
Priority: Minor Minor
Reporter: Josh Soref

The AboutJenkins class is huge (>1000 lines) and coverage in AboutJenkinsTest consists of a single function mayBeDateSmokes.

I'm trying to improve the output of the AboutJenkins code, and potentially improve the sanitization. But in order to do that (and not be laughed at by my colleagues), I need to be able to write tests for the pieces of code I'm changing. As is, AboutJenkins isn't practically testable in small units because everything is hidden in private class or private static.

I understand that people may have pending pull requests (they should get them merged) and they may have code which depends on minute details of how this code works.

If they care, they should get their changes merged and then help write tests documenting their expectations which would make it easier for future contributors to understand the constraints the code lives with when they write changes.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jsoref+jenkins@gmail.com (JIRA)

unread,
Nov 28, 2018, 9:57:01 AM11/28/18
to jenkinsc...@googlegroups.com
Josh Soref commented on Bug JENKINS-54920
 
Re: Refactor AboutJenkins class

For reference, my current proposal is here: https://github.com/jsoref/support-core-plugin/tree/refactor

I won't make a PR for it until jenkinsci/support-core-plugin#155 is merged

escoem@gmail.com (JIRA)

unread,
Feb 19, 2019, 4:48:02 AM2/19/19
to jenkinsc...@googlegroups.com
Emilio Escobar updated an issue
 
Jenkins / Improvement JENKINS-54920
Refactor AboutJenkins class
Change By: Emilio Escobar
Issue Type: Bug Improvement

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 19, 2019, 1:03:03 AM8/19/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ assigned an issue to Allan BURDAJEWICZ
Change By: Allan BURDAJEWICZ
Assignee: Emilio  Escobar Allan BURDAJEWICZ
Reply all
Reply to author
Forward
0 new messages