Code coverage for applications

Track code execution and identify dead code effectively

Code coverage enables you to see exactly what parts of your code are executed during single or multiple runs. It's an invaluable asset for detecting dead code, ensuring that every line of your code serves a purpose.

Key Advantages:

  • Detailed Execution Insights: track which parts of your code are being used and which are not during execution.
  • Dead Code Detection: easily identify and remove code that is never executed, streamlining your application.

How to use:

Click the run icon in the gutter and select Run <run/debug configuration name> with Coverage. For additional options to run code coverage, refer to Running with coverage.

Code coverage for applications

New in 2023.3


Related Resources

Generate tests for generic functions
Use a shortcut to generate test files for your generic functions.
Integrated Go Playground
You can format and share your code, change the Go version, and run your code using the Go playground server.
Fuzz testing
Automate your tests by continuously submitting various input.