From 8cfb4f5c57336e6ec8ebf3deb03785b0f68d3fe9 Mon Sep 17 00:00:00 2001 From: Robert Baillie Date: Wed, 1 Dec 2021 16:03:49 +0000 Subject: [PATCH] Added code coverage request to the command line run all Started a NullDomainTest --- .../{ => null-objects}/tests/NullActionTest.cls | 0 .../tests/NullActionTest.cls-meta.xml | 0 .../classes/null-objects/tests/NullDomainTest.cls | 10 ++++++++++ .../null-objects/tests/NullDomainTest.cls-meta.xml | 5 +++++ scripts/helpers/test-and-show-fails.sh | 2 +- 5 files changed, 16 insertions(+), 1 deletion(-) rename framework/default/ortoo-core/default/classes/{ => null-objects}/tests/NullActionTest.cls (100%) rename framework/default/ortoo-core/default/classes/{ => null-objects}/tests/NullActionTest.cls-meta.xml (100%) create mode 100644 framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls create mode 100644 framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls-meta.xml diff --git a/framework/default/ortoo-core/default/classes/tests/NullActionTest.cls b/framework/default/ortoo-core/default/classes/null-objects/tests/NullActionTest.cls similarity index 100% rename from framework/default/ortoo-core/default/classes/tests/NullActionTest.cls rename to framework/default/ortoo-core/default/classes/null-objects/tests/NullActionTest.cls diff --git a/framework/default/ortoo-core/default/classes/tests/NullActionTest.cls-meta.xml b/framework/default/ortoo-core/default/classes/null-objects/tests/NullActionTest.cls-meta.xml similarity index 100% rename from framework/default/ortoo-core/default/classes/tests/NullActionTest.cls-meta.xml rename to framework/default/ortoo-core/default/classes/null-objects/tests/NullActionTest.cls-meta.xml diff --git a/framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls b/framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls new file mode 100644 index 00000000000..b91d721d4a2 --- /dev/null +++ b/framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls @@ -0,0 +1,10 @@ +@isTest +private without sharing class NullDomainTest +{ + @isTest + private static void constructorClass_buildsANullDomain() // NOPMD: Test method name format + { + NullDomain nullDomain = (NullDomain)new NullDomain.Constructor().construct( new List{ new Contact() } ); + System.assertNotEquals( null, nullDomain ); + } +} \ No newline at end of file diff --git a/framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls-meta.xml b/framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls-meta.xml new file mode 100644 index 00000000000..dd61d1f917e --- /dev/null +++ b/framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls-meta.xml @@ -0,0 +1,5 @@ + + + 52.0 + Active + diff --git a/scripts/helpers/test-and-show-fails.sh b/scripts/helpers/test-and-show-fails.sh index 76884cf83b7..726a56b2acd 100755 --- a/scripts/helpers/test-and-show-fails.sh +++ b/scripts/helpers/test-and-show-fails.sh @@ -1,3 +1,3 @@ #!/bin/bash echo This may take a while... -sfdx force:apex:test:run -r human | grep -v ' Pass ' \ No newline at end of file +sfdx force:apex:test:run -r human --codecoverage | grep -v ' Pass ' \ No newline at end of file