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

Support ut and it test script1 #1755

Merged
merged 5 commits into from
Apr 23, 2022
Merged

Support ut and it test script1 #1755

merged 5 commits into from
Apr 23, 2022

Conversation

hellozepp
Copy link
Contributor

需求描述:

测试脚本run-test.sh 目前只支持黑盒测试(byzer脚本测试),需要支持黑盒还有所有模块的单元测试都能跑
脚本支持三个参数:all(全部执行)、 it(集成测试)、ut(UT测试)
默认值为black,兼容现有的集成测试模式

@hellozepp
Copy link
Contributor Author

hellozepp commented Apr 21, 2022

测试详情

  1. 测试参数:it
    命令如下:
sh -x dev/run-test.sh 3.0 it

成功调起集成测试,日志如下:
image

  1. 测试参数:ut
    命令如下(其中第一个参数为测试的spark引擎版本,第二个参数为测试任务类型):
sh -x dev/run-test.sh 3.0 ut

执行日志如下图:
image
为了达到测试效果,本次测试对失败的项目添加了测试跳过参数,配置如下:

<project ...>
    <properties>
        <skipTests>true</skipTests>
    </properties>

...
  1. 测试参数:all
    测试脚本:
sh -x dev/run-test.sh 3.0 all
  1. 测试不传如参数,使用默认值it
    测试脚本:
sh -x dev/run-test.sh 3.0

结果详解集成测试任务结果:
image

@hellozepp hellozepp requested a review from allwefantasy April 22, 2022 08:26
@hellozepp
Copy link
Contributor Author

@allwefantasy I modified the docs, please take a look.

@hellozepp hellozepp merged commit c35c29e into byzer-org:master Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants