How we measure LogScene's test coverage
Quick answer: As of v1.0.0, LogScene’s automated tests exercise 86.1% of the code that ships in the app1. For a rough sense of scale, ffmpeg - the video engine LogScene and many other products rely on - reports 59.0%2. The two numbers are measured by different tools against different programming languages, so the only fair takeaway is that LogScene is well tested.
Applies to: all LogScene editions | Windows 10/11
What this means
Section titled “What this means”LogScene’s reliability is not a promise on paper - it is exercised by an automated test suite that runs on every change, every day. The coverage figure tells you the percentage of the app’s statements that execute during testing: for v1.0.0, 86.1% of statements.
We show ffmpeg’s figure next to ours only as a point of comparison - ffmpeg is a widely used, well-respected piece of software, so its number gives a sense of what “a lot of testing” looks like. Because the two projects are built using different programming languages and measured with different tools that measure “coverage” differently, it would be wrong to read anything into the comparison beyond this: 86.1% is a high level of test coverage.
We are not claiming LogScene is “more tested” or “better tested” than ffmpeg, and you should not read it that way. Just that LogScene is “well tested.”
For technical readers
Section titled “For technical readers”What the number covers. Go’s built-in tooling - go test and go tool cover - measure coverage at the basic block level, then report coverage at the statement level. We include coverage only for the functions that are linked into the shipped Windows logscene.exe. Code from other tooling that exists in the repository but is not linked into the app is excluded from the value we report. The set of excluded functions is produced mechanically, not by hand.
What it does not cover. The figure reports only the coverage of the app’s Go code. It does not measure the limited amount of JavaScript used in the app’s user interface, code associated with the Windows installer, or the logscene.net website and other infrastructure. Those are tested separately and are not included in the value we report.
Why the ffmpeg comparison is apples-to-oranges. Our figure is Go statement coverage from the Go toolchain. ffmpeg’s figure is line coverage reported by the gcov/lcov tools over a C codebase2. Statement, line, and branch coverage are three different measurements, and the programming languages and toolchains are different. ffmpeg’s report is regenerated continuously and its test coverage value changes over time; as does LogScene’s. We picked ffmpeg’s line-coverage figure because it is a credible counterpart to LogScene’s statement coverage, but it is still only a rough “apples-to-oranges” reference point.
Coverage is not proof of correctness. A high coverage number means the tests run a large share of the code; it does not prove every behavior is right. LogScene’s behavior is also checked a second way: automated end-to-end tests drive a real build of the app using Windows virtual machines - installing, capturing, recovering from outages, and shutting down - so the parts that only happen in a live Windows session are verified by being run, not just by being unit-tested.
Still need help?
Section titled “Still need help?”Didn’t find what you needed here? Contact LogScene support at support@logscene.net and include your license type (Settings → License) and LogScene version (bottom of the sidebar).