-
Notifications
You must be signed in to change notification settings - Fork 403
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
Enable generation of Reports from a List of Features #959
base: master
Are you sure you want to change the base?
Enable generation of Reports from a List of Features #959
Conversation
Embeddings are not written to volume when while deserialization
Codecov Report
@@ Coverage Diff @@
## master #959 +/- ##
============================================
- Coverage 97.91% 97.77% -0.15%
- Complexity 555 565 +10
============================================
Files 54 54
Lines 1153 1168 +15
Branches 99 102 +3
============================================
+ Hits 1129 1142 +13
- Misses 9 11 +2
Partials 15 15
Continue to review full report at Codecov.
|
* | ||
* @return stats for the generated report | ||
*/ | ||
public Reportable generateReportsFromFiles(List<String> pathsTojsonFiles) { |
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.
this changes the API - will you update also maven and jenkins plugin which use this library as dependency?
|
||
private void generateEmbeddings() { | ||
// create directory for embeddings before files are generated | ||
createEmbeddingsDirectory(); |
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.
I think you have already removed this method by second PR?
|
||
reportResult.getAllFeatures().forEach(feature -> { | ||
for (Element element : feature.getElements()) { | ||
for (Hook hook : element.getAfter()) { |
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.
after....
for (Hook hook : element.getAfter()) { | ||
storeEmbedding(hook.getEmbeddings(), configuration.getEmbeddingDirectory()); | ||
} | ||
for (Hook hook : element.getBefore()) { |
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.
... should be after before :)
File file = new File(configuration.getEmbeddingDirectory(), embedding.getFileName()); | ||
assertThat(file).exists(); | ||
} | ||
// private void assertEmbeddingFileExist(Embedding embedding) { |
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.
unused method should be removed, not commented out
git keeps history of changes
this is just a rough idea how you got enable generation of the Reports from a List of Features