Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

57 Commits

Repository files navigation

Utbot Action

You can use this GitHub Action to create pull requests tests and code analysis info to your repository

Content

Inputs

All inputs are required add_tests, refresh_tests, tests_scope, scope_path

NameTypeDescriptionRequired
add_tests'true' / 'false'Add tests to pull requestYes
refresh_tests'true' / 'false'Delete old tests in pull requestYes
utbot_versionxxxx.xx[.xx]UTBot version to runYes
runtests'true' / 'false'Run generated testsYes
scopeproject / directory / fileTesting scopeYes
pathRealtive path stringdirectory or file pathNo for the project, Yes for the rest

Installation

  • Settings > Actions > Allow GitHub Actions to create and approve pull requests
  • permissions: write-all line at action before using Utbot Action
  • create the file .github/workflows/run-utbot.yml with context from the section below

Examples

name: "Run UTBotCpp-action"on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latestpermissions: write-allsteps:
- name: UTBot code analysisuses: UnitTestBot/UTBotCpp-action@test-1.0.27with:
add_tests: 'true'refresh_tests: 'true'utbot_version: '2022.10.4'runtests: 'true'scope: 'project'# for individual file:# scope: 'file'# path: 'src/main.c'

About

Github action that runs UTBotCpp for your project

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors