Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize the efficiency of running LiteFullNode test cases #5489

Closed
forfreeday opened this issue Sep 13, 2023 · 2 comments · Fixed by #5650
Closed

Optimize the efficiency of running LiteFullNode test cases #5489

forfreeday opened this issue Sep 13, 2023 · 2 comments · Fixed by #5650

Comments

@forfreeday
Copy link
Contributor

forfreeday commented Sep 13, 2023

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
@halibobo1205
Copy link
Contributor

org.tron.tool.litefullnode need to be removed, otherwise, coverage will decrease.

@forfreeday
Copy link
Contributor Author

Deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants