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

End2end tests for core #123

Merged
merged 2 commits into from
Apr 6, 2022

Conversation

afillatre
Copy link
Contributor

Coverage could still be higher, but this should make new features way more easy to test

@codecov
Copy link

codecov bot commented Apr 2, 2022

Codecov Report

Merging #123 (2658f46) into master (5c13f9d) will increase coverage by 17.24%.
The diff coverage is 67.96%.

Impacted file tree graph

@@              Coverage Diff              @@
##             master     #123       +/-   ##
=============================================
+ Coverage     40.62%   57.86%   +17.24%     
- Complexity      192      268       +76     
=============================================
  Files            41       40        -1     
  Lines          1184     1182        -2     
  Branches         87       87               
=============================================
+ Hits            481      684      +203     
+ Misses          662      449      -213     
- Partials         41       49        +8     

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 5c13f9d...2658f46. Read the comment docs.

@afillatre afillatre force-pushed the refacto_test_coverage branch 4 times, most recently from 0e989ec to 29ed30a Compare April 3, 2022 09:03
@cesarsotovalero cesarsotovalero self-assigned this Apr 5, 2022
@cesarsotovalero
Copy link
Collaborator

Hi @afillatre,

Thanks a lot for submitting these improvements.

Can you please resolve the conflicts with the master branch so I can merge it 😄

FYI: I added an extra layer of static analysis checks based on the analysis of imports in source files. This means that DepClean now also checks for usages in the source code of the project, which removes false positives such as lombok and sl4j, see #126

@sonarcloud
Copy link

sonarcloud bot commented Apr 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

68.3% 68.3% Coverage
0.0% 0.0% Duplication

@afillatre
Copy link
Contributor Author

@cesarsotovalero that's done. DefaultCallGraphTest may fail on certain condition, because it tests a class using static members, so either this should be refactored to not be static (best solution IMAO) or any test that calls the DefaultCallGraph should reset it after each method.

@afillatre
Copy link
Contributor Author

Although, looking at the Gradle project, I updated the methods that get the output folders to get a set of folders. I did not do that refactoring to your new code though. This is not blocking, but may need to be done later.

@cesarsotovalero
Copy link
Collaborator

@cesarsotovalero that's done. DefaultCallGraphTest may fail on certain condition, because it tests a class using static members, so either this should be refactored to not be static (best solution IMAO) or any test that calls the DefaultCallGraph should reset it after each method.

I agree, DefaultCallGraph should not be a static class. Some refactoring of this class is needed.

@cesarsotovalero cesarsotovalero merged commit cde7189 into ASSERT-KTH:master Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants