-
Notifications
You must be signed in to change notification settings - Fork 22
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
Mutation tests only #38
Open
JekaMas
wants to merge
7
commits into
main
Choose a base branch
from
mutation-tests-only
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JekaMas
requested review from
b00ris,
zivkovicmilos,
ferranbt,
epikichi and
0xSasaPrsic
November 4, 2022 13:00
Codecov Report
@@ Coverage Diff @@
## main #38 +/- ##
=======================================
Coverage 95.51% 95.51%
=======================================
Files 6 6
Lines 1292 1292
=======================================
Hits 1234 1234
Misses 42 42
Partials 16 16 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
ferranbt
approved these changes
Nov 8, 2022
b00ris
approved these changes
Nov 8, 2022
vcastellm
reviewed
Nov 8, 2022
vcastellm
reviewed
Nov 8, 2022
JekaMas
force-pushed
the
mutation-tests-only
branch
from
November 11, 2022 09:06
a1e44e2
to
78ca14e
Compare
8 tasks
vcastellm
approved these changes
Jan 16, 2023
* Minor fixes in ibft and tests (#45) * Add rapid test with bad proposal coming from byzantine node (#44) * Implement event generator for rapid testing (#46) * EVM-220 TestClusterBlockSync/BLS fails in voting power branch (#48) * Added per round event-based setup in rapid tests (#47) * Remove redundant changeState (#49) * Fix Wrong Round Value in Validation of roundsAndPreparedBlockHashes (#51) Fix round in roundsAndP reparedBlockHashes * Audit improvements (#50) * Audit improvements * Add unit tests for EventManager to improve MSI * Add unit tests for message helper to improve MSI * Byzantine tests (#56) * Byzantine tests * Add unit tests for Messages to improve MSI * Fix lint error * fix lint errors only for the codes that changed in the PR * fixed some stuck test * Revert disabling function-length check in golangci * Revert "Revert disabling function-length check in golangci" This reverts commit 415633e. Co-authored-by: Roman Behma <[email protected]> Co-authored-by: Igor Crevar <[email protected]> Co-authored-by: Vuk Gavrilovic <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
As far as consensus is extremely sensitive functionality, I believe we need a way to check our tests for usefulness and correctness. Code coverage, unfortunately, doesn't tell us about the quality of tests, either about usefulness. Even with high code coverage it's possible to write not very useful tests that always 'green', or tests that are 'green' if being executed in particular order.
For that reason the PR introduces changes:
-race
flag as well. At the moment tests do have data races that'd be great to fix in separate issues.-shuffle
flagChanges include
Checklist
Comments
This PR is for discussion about new tooling. At the moment data race tests and mutation tests are
red
. If we'd like to merge the PR, we should comment out this CI steps and make tasks to fix tests with race and a bunch of tasks to add/check tests with respect of mutation testing results.A few examples of mutation testing:
More results are in the file result.txt