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

Fix assertions #1096

Merged
merged 2 commits into from
Oct 5, 2022
Merged

Fix assertions #1096

merged 2 commits into from
Oct 5, 2022

Conversation

SBOne-Kenobi
Copy link
Collaborator

@SBOne-Kenobi SBOne-Kenobi commented Oct 5, 2022

Description

We want to treat assert fails as error suits. To do this was provided setting's property UtSettings.treatAssertAsErrorSuit.

Type of Change

Please delete options that are not relevant.

  • Minor bug fix (non-breaking small changes)

How Has This Been Tested?

Manual Scenario

Generate test with plugin for this class

class A {
  public static void checkPositive(int a) {
    assert(a > 0);
  }
}

Have to generate 2 tests: successful and error suit.

Checklist:

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@SBOne-Kenobi SBOne-Kenobi enabled auto-merge (squash) October 5, 2022 12:50
@SBOne-Kenobi SBOne-Kenobi merged commit 677c15c into main Oct 5, 2022
@SBOne-Kenobi SBOne-Kenobi deleted the sbone/fix-assertions branch October 5, 2022 13:29
denis-fokin pushed a commit that referenced this pull request Oct 5, 2022
(cherry picked from commit 677c15c)
AbdullinAM pushed a commit to AbdullinAM/UTBotJava that referenced this pull request Oct 17, 2022
AbdullinAM pushed a commit to AbdullinAM/UTBotJava that referenced this pull request Oct 17, 2022
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.

2 participants