Skip to content

Optimize the efficiency of running LiteFullNode test cases #5489

Closed
@forfreeday

Description

@forfreeday

Rationale

Why should this feature exist?
Improve the efficiency of test case execution, moving test cases to plugins can reduce the execution time by about 3 minutes.

Implementation

Split into three steps:

  1. Change LiteFullNodeTool and LiteFullNodeToolTest to deprecated and in the run method prompts: LiteFullNodeTool is an obsolete tool and is not recommended to be used any more, please use the tool DbLite
    @Slf4j
    @Deprecated
    public class LiteFullNodeTool {
        ...
        private void run(Args argv) {
           logger.info("LiteFullNodeTool is an obsolete tool and is not recommended to be used any more, please use the tool DbLite.");
       }
    }
  2. Copy the LiteFullNodeTest test case from the framework into the plugins module and name it DbLiteTest,path: org/tron/plugins/DbLiteTest.java
    @Slf4j
    public class DbLiteTest {
  3. The next release will remove LiteFullNodeTest from the framework

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions