forked from apex-enterprise-patterns/fflib-apex-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added code coverage request to the command line run all
Started a NullDomainTest
- Loading branch information
1 parent
6f449d4
commit 8cfb4f5
Showing
5 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<Contact>{ new Contact() } ); | ||
System.assertNotEquals( null, nullDomain ); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
framework/default/ortoo-core/default/classes/null-objects/tests/NullDomainTest.cls-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>52.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
echo This may take a while... | ||
sfdx force:apex:test:run -r human | grep -v ' Pass ' | ||
sfdx force:apex:test:run -r human --codecoverage | grep -v ' Pass ' |