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

Enable generation of Reports from a List of Features #959

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FlorianKaemmerer
Copy link

this is just a rough idea how you got enable generation of the Reports from a List of Features

Embeddings are not written to volume when while deserialization
@codecov-commenter
Copy link

codecov-commenter commented Aug 13, 2020

Codecov Report

Merging #959 into master will decrease coverage by 0.14%.
The diff coverage is 94.59%.

Impacted file tree graph

@@             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              
Impacted Files Coverage Δ Complexity Δ
...java/net/masterthought/cucumber/ReportBuilder.java 91.74% <94.44%> (-2.38%) 32.00 <12.00> (+11.00) ⬇️
...mber/json/deserializers/EmbeddingDeserializer.java 100.00% <100.00%> (+7.14%) 6.00 <0.00> (-1.00) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be9384f...f08d8cb. Read the comment docs.

*
* @return stats for the generated report
*/
public Reportable generateReportsFromFiles(List<String> pathsTojsonFiles) {
Copy link
Owner

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();
Copy link
Owner

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()) {
Copy link
Owner

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()) {
Copy link
Owner

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) {
Copy link
Owner

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

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.

None yet

3 participants