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

Enhance the test framework, add --only, --loglevel, --count option #655

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

artikell
Copy link
Contributor

Enhance the test framework:

  • support --loglevel:The note level now only outputs test results
  • support --only: Use the ./src/valkey-unit-tests --only 'zip' command to execute only the use case of the keyword zip
  • support --count:You can choose to execute multiple times
  • support Time statistics:The result defaults to including execution time, like:
[ok] - test_ziplist.c:test_BenchmarkziplistCompareWithString    1       27282201.0000 ns/op
[ok] - test_ziplist.c:test_BenchmarkziplistCompareWithNumber    1       37461000.0000 ns/op
[ok] - test_ziplist.c:test_ziplistStress__ziplistCascadeUpdate  1       34700.0000 ns/op

Copy link

codecov bot commented Jun 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.19%. Comparing base (93123f9) to head (38400ae).

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable     #655      +/-   ##
============================================
- Coverage     70.20%   70.19%   -0.01%     
============================================
  Files           110      110              
  Lines         60065    60065              
============================================
- Hits          42169    42163       -6     
- Misses        17896    17902       +6     

see 12 files with indirect coverage changes

@madolson madolson self-requested a review June 17, 2024 04:19
@artikell
Copy link
Contributor Author

@madolson I'm not sure if you have time to review this or if you have any suggestions.

After this is merged, I believe the results can be used as a means of performance evaluation.

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.

1 participant