unittestbot/UTBot static code analysis
The GitHub action for generating tests and creating SARIF reports based on UTBotJava
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| pushTests | Push generated tests to the repository or not. | — | true |
| targetClasses | Classes for which the SARIF-report will be created. Uses all source classes from the user project if this list is empty. | — | all |
| generatedTestsRelativeRoot | Relative path (against repository root) to the root of the generated tests. | — | .utbot/test |
| testFramework | The name of the test framework to be used. Options: ['junit4', 'junit5', 'testng']. | — | junit5 |
| generationTimeout | Time budget for generating tests for one class (in milliseconds). | — | 60000 |
| codegenLanguage | The language of the generated tests. Options: ['java', 'kotlin']. | — | java |
| mockStrategy | The mock strategy to be used. Options: ['no-mocks', 'other-packages', 'other-classes']. | — | other-packages |
| staticsMocking | Use static methods mocking or not. Options: ['do-not-mock-statics', 'mock-statics']. | — | mock-statics |
| forceStaticMocking | Forces mocking static methods and constructors for classesToMockAlways classes or not. Options: ['force', 'do-not-force']. | — | force |
| classesToMockAlways | Classes to force mocking theirs static methods and constructors. By default, some internal classes are used. | — | [] |
Outputs
no outputs