Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Don't execute slow doc tests #1141

Merged

Conversation

josecelano
Copy link
Member

This PR disables slow doc tests. They are slow because they include the main library, and each test has to compile it.

They will be enabled again after moving the code to workspace sub-packages that do not depend on the main tracker lib.

@josecelano josecelano linked an issue Dec 18, 2024 that may be closed by this pull request
It takes 32 seconds to compile and run all doc tests inckuding the ones
that use the main tracker lib (each test compiles the main lib).

This change disabled the compilation and execution of those tests.

In terms of code coverage is not a problem becuase we have units test
for that functionality. It only affects to the documentation. However
there are too slow and they are even making crah some developers'
computers.

The good solution would be to extract those parts into new workspace
packages to avoid compiling the main library. A new issue has been
opened for it:

torrust#1140
@josecelano josecelano force-pushed the 1097-some-docs-tests-are-very-slow branch from 0bbe83b to 0e13ff7 Compare December 18, 2024 10:54
@josecelano
Copy link
Member Author

ACK 0e13ff7

@josecelano josecelano requested a review from da2ce7 December 18, 2024 11:00
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.23%. Comparing base (f113d2c) to head (0e13ff7).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1141      +/-   ##
===========================================
+ Coverage    76.21%   76.23%   +0.02%     
===========================================
  Files          173      173              
  Lines        11543    11543              
  Branches     11543    11543              
===========================================
+ Hits          8797     8800       +3     
+ Misses        2584     2576       -8     
- Partials       162      167       +5     

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

@josecelano josecelano merged commit df101fb into torrust:develop Dec 18, 2024
23 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some docs tests are very slow
1 participant