---
title: "Discussion on \"RunLocalTests vs RunSpecifiedTests: why one passes and the other fails with 0% coverage\" | Hashnode"
description: "Discussion on \"RunLocalTests vs RunSpecifiedTests: why one passes and the other fails with 0% coverage\". Two test levels cover almost every production deployment: RunLocalTests and RunSpecifiedTests. They look interchangeable, but they apply different coverage rules, and the difference explains a failure"
url: "https://hashnode.com/posts/runlocaltests-vs-runspecifiedtests-why-one-passes-and-the-other-fails-with-0-coverage/6b0b26fcbeaeff1b21ffbb66"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [RunLocalTests vs RunSpecifiedTests: why one passes and the other fails with 0% coverage](https://diffbridge.hashnode.dev/runlocaltests-vs-runspecifiedtests-why-one-passes-and-the-other-fails-with-0-coverage?utm_source=hashnode&utm_medium=feed)

Two test levels cover almost every production deployment: RunLocalTests and RunSpecifiedTests. They look interchangeable, but they apply different coverage rules, and the difference explains a failure

3d ago · 4 min read · diffbridge.hashnode.dev  
Updated 1d ago  
Read the article

-   [#salesforce](https://hashnode.com/tag/salesforce)
-   [#devops](https://hashnode.com/tag/devops)
-   [#apex](https://hashnode.com/tag/apex)
-   [#testing](https://hashnode.com/tag/testing)

## Written by

[Diffbridge](https://hashnode.com/@diffbridge)

@diffbridge

  
[View profile](https://hashnode.com/@diffbridge)

Salesforce deployments with a visible test plan, a per-org queue and rollback.

I build Diffbridge, a Salesforce deployment tool (diffbridge.com). Notes on Apex tests and CI queues. Posts here are republished from the Diffbridge blog.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
