-
Notifications
You must be signed in to change notification settings - Fork 49
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
Feature/source comparator passed test code compare #413
Feature/source comparator passed test code compare #413
Conversation
@ernestosiak could you please resolve the conflict? |
I very like refactor that you did in Source Code Comparator 👍 Please resolve conflicting files |
core/jobs/src/main/java/com/cognifide/aet/job/common/comparators/source/CodeFormatter.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/cognifide/aet/job/common/comparators/source/SourceComparatorRegExpTest.java
Show resolved
Hide resolved
...rc/test/java/com/cognifide/aet/job/common/comparators/source/SourceComparatorRegExpTest.java
Outdated
Show resolved
Hide resolved
@@ -53,7 +53,7 @@ public void setUp() { | |||
} | |||
|
|||
@Theory | |||
public void removeEmptyLines(String[] dataPoint) throws Exception { | |||
public void removeEmptyLines(String[] dataPoint) { | |||
String input = dataPoint[0]; |
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.
Could We also add some tests for MARKUP
, CONTENT
and ALLFORMATTED
types?
I wonder if we could have one input HTML file and three expected output files that shows the difference in code formatting..
...jobs/src/test/java/com/cognifide/aet/job/common/comparators/source/SourceComparatorTest.java
Show resolved
Hide resolved
core/jobs/src/main/java/com/cognifide/aet/job/common/comparators/source/SourceComparator.java
Outdated
Show resolved
Hide resolved
core/jobs/src/main/java/com/cognifide/aet/job/common/comparators/source/CodeFormatter.java
Show resolved
Hide resolved
core/jobs/src/main/java/com/cognifide/aet/job/common/comparators/source/Sources.java
Show resolved
Hide resolved
...jobs/src/test/java/com/cognifide/aet/job/common/comparators/source/SourceComparatorTest.java
Show resolved
Hide resolved
report/src/main/webapp/app/layout/main/url/reports/source.diff.html
Outdated
Show resolved
Hide resolved
Some additional unit tests for source formatter
Test update for removing empty lines code
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 update Changelog :)
tested, working well ✔️ |
Successful source comparator will save artifact with sources of pattern and tested data.
Description
Source comparator, even if successful, will save artifact with sources of pattern and tested data (no difference discovered). This way user can compare sources of them, just like in failed test.
Motivation and Context
Issue 369
Screenshots (if appropriate):
Types of changes
Checklist:
I hereby agree to the terms of the AET Contributor License Agreement.