Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

teste #20

Merged
merged 3 commits into from
May 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";


export default [
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReactConfig,
];
3 changes: 2 additions & 1 deletion force-app/main/default/classes/DummyClass.cls
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ public with sharing class DummyClass {
}

public static String getStatic(){
String a = 'Analiza o código 2';

String a = 'Analiza o código';

return a;
}
Expand Down
35 changes: 35 additions & 0 deletions force-app/main/default/classes/DummyClassTest.cls
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* This class contains unit tests for validating the behavior of Apex classes
* and triggers.
*
* Unit tests are class methods that verify whether a particular piece
* of code is working properly. Unit test methods take no arguments,
* commit no data to the database, and are flagged with the testMethod
* keyword in the method definition.
*
* All test methods in an org are executed whenever Apex code is deployed
* to a production org to confirm correctness, ensure code
* coverage, and prevent regressions. All Apex classes are
* required to have at least 75% code coverage in order to be deployed
* to a production org. In addition, all triggers must have some code coverage.
*
* The @isTest class annotation indicates this class only contains test
* methods. Classes defined with the @isTest annotation do not count against
* the org size limit for all Apex scripts.
*
* See the Apex Language Reference for more information about Testing and Code Coverage.
*/
@isTest
private class DummyClassTest {

@isTest
static void myUnitTest() {
// TO DO: implement unit test

String a = DummyClass.getStatic();

System.Assert(a == 'Analiza o código', 'Test failed !!!');


}
}
5 changes: 5 additions & 0 deletions force-app/main/default/classes/DummyClassTest.cls-meta.xml
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>59.0</apiVersion>
<status>Active</status>
</ApexClass>
4 changes: 4 additions & 0 deletions log.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
7526ada,Fabio de Agostini Schiozer,2 hours ago,Update codeAnalyzerOnPR.yml
d969a34,Fabio de Agostini Schiozer,3 hours ago,Update codeAnalyzerOnPR.yml
849a41b,Fabio de Agostini Schiozer,3 hours ago,Update DummyClass.cls
0733066,Fabio de Agostini Schiozer,3 hours ago,Create codeAnalyzerOnPR.yml
2 changes: 1 addition & 1 deletion manifest/buildfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"type": "metadata",
"manifestFile": "manifest/package.xml",
"testLevel": "RunLocalTests",
"testLevel": "RunSpecifiedTests",
"classPath": "force-app/main/default/classes",
"timeout": "33",
"ignoreWarnings": true
Expand Down
5 changes: 5 additions & 0 deletions manifest/package.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>DummyClass</members>
<members>DummyClassTest</members>
<name>ApexClass</name>
</types>
<types>
<members>Eu_vou_ser_deletado__c</members>
<name>CustomObject</name>
Expand Down
Loading
Loading