diff --git a/.github/codecov.yml b/.github/codecov.yml index 46da35615a8..52f98f2309d 100644 --- a/.github/codecov.yml +++ b/.github/codecov.yml @@ -5,19 +5,31 @@ coverage: status: project: default: + target: 50% informational: true + if_ci_failed: ignore patch: default: + target: 50% informational: true + if_ci_failed: ignore parsers: cobertura: - partials_as_hits: true + partials_as_hits: false -comment: #this is a top-level key - layout: "diff, flags, files" +# comment: #this is a top-level key +# layout: "diff, flags, files" +# behavior: default +# require_changes: false # if true: only post the comment if coverage changes +# require_base: false # [true :: must have a base report to post] +# require_head: true # [true :: must have a head report to post] +# hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage] + +comment: + layout: "header, files, footer" behavior: default - require_changes: false # if true: only post the comment if coverage changes - require_base: false # [true :: must have a base report to post] - require_head: true # [true :: must have a head report to post] - hide_project_coverage: false # [true :: only show coverage on the git diff aka patch coverage] + require_changes: false + require_base: true + require_head: true + hide_project_coverage: false \ No newline at end of file diff --git a/examples/closure-app/silabs/src/AppTask.cpp b/examples/closure-app/silabs/src/AppTask.cpp index 8f58fe69141..06e45ab17ad 100644 --- a/examples/closure-app/silabs/src/AppTask.cpp +++ b/examples/closure-app/silabs/src/AppTask.cpp @@ -85,6 +85,8 @@ CHIP_ERROR AppTask::AppInit() // Initialization of Closure Manager and endpoints of closure and closurepanel. ClosureManager::GetInstance().Init(); + SILABS_LOG("Testing the Closure App!"); + // Update the LCD with the Stored value. Show QR Code if not provisioned #ifdef DISPLAY_ENABLED GetLCD().WriteDemoUI(false); diff --git a/src/app/clusters/closure-control-server/closure-control-cluster-logic.cpp b/src/app/clusters/closure-control-server/closure-control-cluster-logic.cpp index e9d220d2880..667d8b83f57 100644 --- a/src/app/clusters/closure-control-server/closure-control-cluster-logic.cpp +++ b/src/app/clusters/closure-control-server/closure-control-cluster-logic.cpp @@ -534,8 +534,33 @@ Protocols::InteractionModel::Status ClusterLogic::HandleStop() Protocols::InteractionModel::Status ClusterLogic::HandleMoveTo(Optional position, Optional latch, Optional speed) { + ChipLogProgress(AppServer, "Demo function started - line 1"); + ChipLogProgress(AppServer, "Demo function - line 2"); + ChipLogProgress(AppServer, "Demo function - line 3"); + ChipLogProgress(AppServer, "Demo function - line 4"); + ChipLogProgress(AppServer, "Demo function - line 5"); + ChipLogProgress(AppServer, "Demo function - line 6"); + ChipLogProgress(AppServer, "Demo function - line 7"); + ChipLogProgress(AppServer, "Demo function - line 8"); + ChipLogProgress(AppServer, "Demo function - line 9"); + ChipLogProgress(AppServer, "Demo function - line 10"); VerifyOrDieWithMsg(mIsInitialized, AppServer, "MoveTo Command called before Initialization of closure"); + if(latch.HasValue()){ + ChipLogProgress(AppServer, "Demo function - line 1"); + ChipLogProgress(AppServer, "Demo function - line 2"); + ChipLogProgress(AppServer, "Demo function - line 3"); + ChipLogProgress(AppServer, "Demo function - line 4"); + ChipLogProgress(AppServer, "Demo function - line 5"); + } + else{ + ChipLogProgress(AppServer, " ELSE Demo function - line 1"); + ChipLogProgress(AppServer, " ELSE Demo function - line 2"); + ChipLogProgress(AppServer, " ELSE Demo function - line 3"); + ChipLogProgress(AppServer, " ELSE Demo function - line 4"); + ChipLogProgress(AppServer, " ELSE Demo function - line 5"); + } + VerifyOrReturnError(position.HasValue() || latch.HasValue() || speed.HasValue(), Status::InvalidCommand); DataModel::Nullable overallCurrentState; @@ -689,6 +714,22 @@ CHIP_ERROR ClusterLogic::GenerateSecureStateChangedEvent(const bool secureValue) return CHIP_NO_ERROR; } +void DemoFunction() +{ + // Demo function for testing coverage - basic print statements + ChipLogProgress(AppServer, "Demo function started - line 1"); + ChipLogProgress(AppServer, "Demo function - line 2"); + ChipLogProgress(AppServer, "Demo function - line 3"); + ChipLogProgress(AppServer, "Demo function - line 4"); + ChipLogProgress(AppServer, "Demo function - line 5"); + ChipLogProgress(AppServer, "Demo function - line 6"); + ChipLogProgress(AppServer, "Demo function - line 7"); + ChipLogProgress(AppServer, "Demo function - line 8"); + ChipLogProgress(AppServer, "Demo function - line 9"); + ChipLogProgress(AppServer, "Demo function - line 10"); + ChipLogProgress(AppServer, "Demo function completed - final line"); +} + } // namespace ClosureControl } // namespace Clusters } // namespace app