一种单元测试方法及装置、存储介质

By building a Spark computing engine and data storage device, generating and executing unit test tasks, the problem of large workload and low efficiency in Spark data computing testing is solved, and efficient testing of fine-grained logical units is achieved.

CN113342696BActive Publication Date: 2026-07-17BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING WODONG TIANJUN INFORMATION TECH CO LTD
Filing Date
2021-07-13
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing Spark data computation testing methods are difficult to test fine-grained logical units, resulting in a large workload and low efficiency in testing.

Method used

This paper provides a unit testing apparatus and method, which is implemented through a registration interface to build a Spark computing engine and data storage device, generate unit test tasks, execute them in a local environment, and output test reports.

Benefits of technology

It enables targeted testing of fine-grained logical units within Spark computing tasks, reducing testing workload and improving testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113342696B_ABST
    Figure CN113342696B_ABST
Patent Text Reader

Abstract

本发明实施例公开了一种单元测试方法及装置、存储介质,装置包括:单元测试加载模块,用于根据定义的Spark单元测试,注册计算环境构建模块的接口实现并加载到计算环境构建模块,以及注册单元测试模块的接口实现并加载到单元测试模块;计算环境构建模块,用于根据计算环境构建模块的接口实现,生成引擎构建任务和数据存储装置构建任务;利用引擎构建任务构建Spark计算引擎,并利用数据存储装置构建任务构建数据存储装置;单元测试模块,用于根据单元测试模块的接口实现,生成单元测试任务;并将单元测试任务加载到Spark计算引擎中执行,输出单元测试报告;数据存储装置,用于存储单元测试相关的测试数据。
Need to check novelty before this filing date? Find Prior Art