Skip to content

Enable smart fuzzer for UTBot by default for a plugin #66 #385

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

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

Markoutte
Copy link
Collaborator

Description

This change enables fuzzing by default.

Fixes #66

Type of Change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

Automated Testing

Fuzzing related tests can be found in module utbot-fuzzers (org/utbot/framework/plugin/api)

NB: Tests of different samples run without fuzzing

Manual Scenario

Change settings.properties with value:

checkSolverTimeoutMillis=1

and generate test. The result should contain fuzzing-generated tests and can contain test created by symbolic engine. Usually the time is too small, and output contains only fuzzing-generated tests.

Try this example. Among fuzzing-generated test there's no test that returns 2.

public int floatToInt(float x) {
    if (x < 0) {
        if ((int) x < 0) {
            return 1;
        }
        return 2; // smth small to int zero
    }
    return 3;
}

@Markoutte Markoutte requested a review from denis-fokin July 4, 2022 08:20
@Markoutte Markoutte merged commit fc99784 into main Jul 4, 2022
@Markoutte Markoutte deleted the pelevin/fuzzer branch July 4, 2022 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Smart fuzzer for UTBot
2 participants