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

test: update unit tests to use temporary folders instead of writing files to the main codebase folders #14157

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

MiroslavGatsanoga
Copy link
Collaborator

@MiroslavGatsanoga MiroslavGatsanoga commented Jul 4, 2024

Description:

Related issue(s):

Fixes #6714

Notes for reviewer:

In order to verify that the previously used test files and directories are not being used anymore I use the run the following:

./gradlew -x :test-clients:test test --rerun-tasks

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
@MiroslavGatsanoga MiroslavGatsanoga self-assigned this Jul 4, 2024
@MiroslavGatsanoga MiroslavGatsanoga added this to the v0.53 milestone Jul 4, 2024
Copy link

github-actions bot commented Jul 4, 2024

Node: HAPI Test (Restart) Results

3 tests   3 ✅  2m 50s ⏱️
3 suites  0 💤
3 files    0 ❌

Results for commit bd9b572.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 4, 2024

Node: HAPI Test (Crypto) Results

 24 files   24 suites   12m 3s ⏱️
364 tests 364 ✅ 0 💤 0 ❌
371 runs  371 ✅ 0 💤 0 ❌

Results for commit bd9b572.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 4, 2024

Node: HAPI Test (Time Consuming) Results

19 tests   19 ✅  23m 2s ⏱️
 4 suites   0 💤
 4 files     0 ❌

Results for commit bd9b572.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 4, 2024

Node: HAPI Test (Token) Results

 22 files   22 suites   6m 52s ⏱️
273 tests 273 ✅ 0 💤 0 ❌
351 runs  351 ✅ 0 💤 0 ❌

Results for commit bd9b572.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 4, 2024

Node: HAPI Test (Node Death Reconnect) Results

3 tests   3 ✅  6m 0s ⏱️
3 suites  0 💤
3 files    0 ❌

Results for commit bd9b572.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 4, 2024

Node: HAPI Test (Smart Contract) Results

 73 files   73 suites   23m 13s ⏱️
626 tests 626 ✅ 0 💤 0 ❌
679 runs  679 ✅ 0 💤 0 ❌

Results for commit bd9b572.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 4, 2024

Node: HAPI Test (Misc) Results

 51 files   51 suites   20m 41s ⏱️
357 tests 357 ✅ 0 💤 0 ❌
375 runs  375 ✅ 0 💤 0 ❌

Results for commit bd9b572.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 4, 2024

Node: Unit Test Results

  1 545 files    1 545 suites   3h 30m 22s ⏱️
115 799 tests 115 740 ✅ 59 💤 0 ❌
124 114 runs  124 055 ✅ 59 💤 0 ❌

Results for commit bd9b572.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.10%. Comparing base (9973fae) to head (bd9b572).
Report is 102 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #14157      +/-   ##
=============================================
- Coverage      67.58%   58.10%   -9.49%     
+ Complexity     36486    22057   -14429     
=============================================
  Files           3732     2869     -863     
  Lines         149767   110369   -39398     
  Branches       15571    11268    -4303     
=============================================
- Hits          101223    64130   -37093     
+ Misses         44179    42661    -1518     
+ Partials        4365     3578     -787     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
Signed-off-by: Miroslav Gatsanoga <miroslav.gatsanoga@limechain.tech>
@MiroslavGatsanoga MiroslavGatsanoga force-pushed the 06714-use-temp-folders-for-tests branch from bd9b572 to e577abc Compare July 4, 2024 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
1 participant