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
[Improvement][dao,server] unit test for ConditionsTask #3385
Conversation
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/entity/TaskInstance.java
Show resolved
Hide resolved
Sonar Analysis failed, you can see more at |
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/Constants.java
Outdated
Show resolved
Hide resolved
...duler-server/src/test/java/org/apache/dolphinscheduler/server/master/ConditionsTaskTest.java
Show resolved
Hide resolved
cdb8977
to
6538718
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
done. |
@yangqinlong There is a big change in |
pom.xml
Outdated
<include>**/dao/mapper/AccessTokenMapperTest.java</include> | ||
<include>**/dao/mapper/AlertGroupMapperTest.java</include> | ||
<include>**/dao/mapper/CommandMapperTest.java</include> | ||
<include>**/dao/mapper/ConnectionFactoryTest.java</include> | ||
<include>**/dao/mapper/DataSourceMapperTest.java</include> | ||
<include>**/dao/entity/UdfFuncTest.java</include> | ||
<include>**/dao/mapper/DataSourceUserMapperTest.java</include> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert the changes and just add your test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done. and you may wannt to know that there're two parts for /dao
here and the dao/entity/ProcessDefinitionTest
is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
607c180
to
d4b61ed
Compare
Codecov Report
@@ Coverage Diff @@
## dev #3385 +/- ##
============================================
+ Coverage 35.60% 35.90% +0.29%
- Complexity 2569 2587 +18
============================================
Files 448 448
Lines 20919 20919
Branches 2558 2559 +1
============================================
+ Hits 7448 7510 +62
+ Misses 12785 12721 -64
- Partials 686 688 +2
Continue to review full report at Codecov.
|
d4b61ed
to
d8b63cb
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
What is the purpose of the pull request
refactor the unit test for ConditionsTask
Brief change log
Verify this pull request
This change added tests and can be verified as follows:
org.apache.dolphinscheduler.server.master.ConditionsTaskTest
org.apache.dolphinscheduler.dao.entity.TaskInstanceTest