Skip to content

Commit

Permalink
Foi configurado o ambiente de teste do react-native, foi criado o tes…
Browse files Browse the repository at this point in the history
…te da pagina SignIn. O teste criado é que deve conter o campo de email / senha. Foi instalado react-native-testing-library e o @testing-library/jest-native
  • Loading branch information
NecroKills committed Jul 3, 2020
1 parent 8cfd64a commit 3534f33
Show file tree
Hide file tree
Showing 33 changed files with 7,192 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"env": {
"browser": true,
"es6": true
"es6": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
Expand Down
286 changes: 286 additions & 0 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,286 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1593817632297" clover="3.2.0">
<project timestamp="1593817632298" name="All files">
<metrics statements="226" coveredstatements="26" conditionals="44" coveredconditionals="7" methods="84" coveredmethods="6" elements="354" coveredelements="39" complexity="0" loc="226" ncloc="226" packages="9" files="9" classes="9"/>
<package name="components.Button">
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<file name="index.tsx" path="C:\Users\Maycon_2\Documents\BootCamp\Nivel_3\gobarberapp\src\components\Button\index.tsx">
<metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<line num="11" count="1" type="stmt"/>
<line num="12" count="1" type="stmt"/>
</file>
</package>
<package name="components.Input">
<metrics statements="21" coveredstatements="12" conditionals="6" coveredconditionals="5" methods="9" coveredmethods="3"/>
<file name="index.tsx" path="C:\Users\Maycon_2\Documents\BootCamp\Nivel_3\gobarberapp\src\components\Input\index.tsx">
<metrics statements="21" coveredstatements="12" conditionals="6" coveredconditionals="5" methods="9" coveredmethods="3"/>
<line num="28" count="1" type="stmt"/>
<line num="32" count="2" type="stmt"/>
<line num="34" count="2" type="cond" truecount="1" falsecount="0"/>
<line num="35" count="2" type="stmt"/>
<line num="37" count="2" type="stmt"/>
<line num="38" count="2" type="stmt"/>
<line num="40" count="2" type="stmt"/>
<line num="41" count="0" type="stmt"/>
<line num="44" count="2" type="stmt"/>
<line num="45" count="0" type="stmt"/>
<line num="47" count="0" type="stmt"/>
<line num="50" count="2" type="stmt"/>
<line num="52" count="0" type="stmt"/>
<line num="56" count="2" type="stmt"/>
<line num="57" count="2" type="stmt"/>
<line num="62" count="0" type="stmt"/>
<line num="64" count="0" type="stmt"/>
<line num="67" count="0" type="stmt"/>
<line num="68" count="0" type="stmt"/>
<line num="73" count="2" type="stmt"/>
<line num="88" count="0" type="stmt"/>
</file>
</package>
<package name="hooks">
<metrics statements="28" coveredstatements="5" conditionals="6" coveredconditionals="1" methods="7" coveredmethods="1"/>
<file name="auth.tsx" path="C:\Users\Maycon_2\Documents\BootCamp\Nivel_3\gobarberapp\src\hooks\auth.tsx">
<metrics statements="28" coveredstatements="5" conditionals="6" coveredconditionals="1" methods="7" coveredmethods="1"/>
<line num="36" count="1" type="stmt"/>
<line num="38" count="1" type="stmt"/>
<line num="41" count="0" type="stmt"/>
<line num="43" count="0" type="stmt"/>
<line num="45" count="0" type="stmt"/>
<line num="48" count="0" type="stmt"/>
<line num="54" count="0" type="cond" truecount="0" falsecount="4"/>
<line num="55" count="0" type="stmt"/>
<line num="57" count="0" type="stmt"/>
<line num="60" count="0" type="stmt"/>
<line num="62" count="0" type="stmt"/>
<line num="66" count="0" type="stmt"/>
<line num="69" count="0" type="stmt"/>
<line num="74" count="0" type="stmt"/>
<line num="77" count="0" type="stmt"/>
<line num="82" count="0" type="stmt"/>
<line num="84" count="0" type="stmt"/>
<line num="87" count="0" type="stmt"/>
<line num="88" count="0" type="stmt"/>
<line num="89" count="0" type="stmt"/>
<line num="92" count="0" type="stmt"/>
<line num="94" count="0" type="stmt"/>
<line num="96" count="0" type="stmt"/>
<line num="104" count="0" type="stmt"/>
<line num="114" count="1" type="stmt"/>
<line num="116" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="117" count="0" type="stmt"/>
<line num="120" count="1" type="stmt"/>
</file>
</package>
<package name="pages.AppointmentCreated">
<metrics statements="9" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="0"/>
<file name="index.tsx" path="C:\Users\Maycon_2\Documents\BootCamp\Nivel_3\gobarberapp\src\pages\AppointmentCreated\index.tsx">
<metrics statements="9" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="0"/>
<line num="19" count="0" type="stmt"/>
<line num="20" count="0" type="stmt"/>
<line num="21" count="0" type="stmt"/>
<line num="23" count="0" type="stmt"/>
<line num="25" count="0" type="stmt"/>
<line num="26" count="0" type="stmt"/>
<line num="32" count="0" type="stmt"/>
<line num="33" count="0" type="stmt"/>
<line num="38" count="0" type="stmt"/>
</file>
</package>
<package name="pages.CreateAppointment">
<metrics statements="54" coveredstatements="0" conditionals="10" coveredconditionals="0" methods="25" coveredmethods="0"/>
<file name="index.tsx" path="C:\Users\Maycon_2\Documents\BootCamp\Nivel_3\gobarberapp\src\pages\CreateAppointment\index.tsx">
<metrics statements="54" coveredstatements="0" conditionals="10" coveredconditionals="0" methods="25" coveredmethods="0"/>
<line num="51" count="0" type="stmt"/>
<line num="52" count="0" type="stmt"/>
<line num="53" count="0" type="stmt"/>
<line num="54" count="0" type="stmt"/>
<line num="55" count="0" type="stmt"/>
<line num="57" count="0" type="stmt"/>
<line num="58" count="0" type="stmt"/>
<line num="61" count="0" type="stmt"/>
<line num="62" count="0" type="stmt"/>
<line num="63" count="0" type="stmt"/>
<line num="65" count="0" type="stmt"/>
<line num="66" count="0" type="stmt"/>
<line num="67" count="0" type="stmt"/>
<line num="71" count="0" type="stmt"/>
<line num="72" count="0" type="stmt"/>
<line num="75" count="0" type="stmt"/>
<line num="76" count="0" type="stmt"/>
<line num="79" count="0" type="stmt"/>
<line num="80" count="0" type="stmt"/>
<line num="83" count="0" type="stmt"/>
<line num="84" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="85" count="0" type="stmt"/>
<line num="88" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="89" count="0" type="stmt"/>
<line num="93" count="0" type="stmt"/>
<line num="95" count="0" type="stmt"/>
<line num="96" count="0" type="stmt"/>
<line num="105" count="0" type="stmt"/>
<line num="109" count="0" type="stmt"/>
<line num="110" count="0" type="stmt"/>
<line num="111" count="0" type="stmt"/>
<line num="112" count="0" type="stmt"/>
<line num="119" count="0" type="stmt"/>
<line num="120" count="0" type="stmt"/>
<line num="121" count="0" type="stmt"/>
<line num="122" count="0" type="stmt"/>
<line num="129" count="0" type="stmt"/>
<line num="130" count="0" type="stmt"/>
<line num="133" count="0" type="stmt"/>
<line num="134" count="0" type="stmt"/>
<line num="135" count="0" type="stmt"/>
<line num="137" count="0" type="stmt"/>
<line num="138" count="0" type="stmt"/>
<line num="140" count="0" type="stmt"/>
<line num="145" count="0" type="stmt"/>
<line num="147" count="0" type="stmt"/>
<line num="154" count="0" type="stmt"/>
<line num="184" count="0" type="stmt"/>
<line num="186" count="0" type="stmt"/>
<line num="187" count="0" type="stmt"/>
<line num="233" count="0" type="stmt"/>
<line num="238" count="0" type="stmt"/>
<line num="254" count="0" type="stmt"/>
<line num="259" count="0" type="stmt"/>
</file>
</package>
<package name="pages.Dashboard">
<metrics statements="17" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="9" coveredmethods="0"/>
<file name="index.tsx" path="C:\Users\Maycon_2\Documents\BootCamp\Nivel_3\gobarberapp\src\pages\Dashboard\index.tsx">
<metrics statements="17" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="9" coveredmethods="0"/>
<line num="32" count="0" type="stmt"/>
<line num="33" count="0" type="stmt"/>
<line num="35" count="0" type="stmt"/>
<line num="36" count="0" type="stmt"/>
<line num="38" count="0" type="stmt"/>
<line num="39" count="0" type="stmt"/>
<line num="40" count="0" type="stmt"/>
<line num="44" count="0" type="stmt"/>
<line num="45" count="0" type="stmt"/>
<line num="48" count="0" type="stmt"/>
<line num="49" count="0" type="stmt"/>
<line num="52" count="0" type="stmt"/>
<line num="54" count="0" type="stmt"/>
<line num="59" count="0" type="stmt"/>
<line num="88" count="0" type="stmt"/>
<line num="90" count="0" type="stmt"/>
<line num="91" count="0" type="stmt"/>
</file>
</package>
<package name="pages.Profile">
<metrics statements="49" coveredstatements="0" conditionals="12" coveredconditionals="0" methods="16" coveredmethods="0"/>
<file name="index.tsx" path="C:\Users\Maycon_2\Documents\BootCamp\Nivel_3\gobarberapp\src\pages\Profile\index.tsx">
<metrics statements="49" coveredstatements="0" conditionals="12" coveredconditionals="0" methods="16" coveredmethods="0"/>
<line num="44" count="0" type="stmt"/>
<line num="45" count="0" type="stmt"/>
<line num="46" count="0" type="stmt"/>
<line num="47" count="0" type="stmt"/>
<line num="49" count="0" type="stmt"/>
<line num="50" count="0" type="stmt"/>
<line num="51" count="0" type="stmt"/>
<line num="52" count="0" type="stmt"/>
<line num="55" count="0" type="stmt"/>
<line num="57" count="0" type="stmt"/>
<line num="58" count="0" type="stmt"/>
<line num="60" count="0" type="stmt"/>
<line num="67" count="0" type="stmt"/>
<line num="75" count="0" type="stmt"/>
<line num="82" count="0" type="stmt"/>
<line num="90" count="0" type="stmt"/>
<line num="92" count="0" type="stmt"/>
<line num="104" count="0" type="stmt"/>
<line num="106" count="0" type="stmt"/>
<line num="108" count="0" type="stmt"/>
<line num="109" count="0" type="stmt"/>
<line num="111" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="112" count="0" type="stmt"/>
<line num="114" count="0" type="stmt"/>
<line num="116" count="0" type="stmt"/>
<line num="119" count="0" type="stmt"/>
<line num="128" count="0" type="stmt"/>
<line num="129" count="0" type="stmt"/>
<line num="137" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="138" count="0" type="stmt"/>
<line num="141" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="142" count="0" type="stmt"/>
<line num="143" count="0" type="stmt"/>
<line num="146" count="0" type="stmt"/>
<line num="148" count="0" type="stmt"/>
<line num="154" count="0" type="stmt"/>
<line num="156" count="0" type="stmt"/>
<line num="157" count="0" type="stmt"/>
<line num="163" count="0" type="stmt"/>
<line num="164" count="0" type="stmt"/>
<line num="167" count="0" type="stmt"/>
<line num="181" count="0" type="stmt"/>
<line num="189" count="0" type="stmt"/>
<line num="215" count="0" type="stmt"/>
<line num="229" count="0" type="stmt"/>
<line num="242" count="0" type="stmt"/>
<line num="256" count="0" type="stmt"/>
<line num="269" count="0" type="stmt"/>
<line num="273" count="0" type="stmt"/>
</file>
</package>
<package name="pages.SignIn">
<metrics statements="22" coveredstatements="7" conditionals="4" coveredconditionals="1" methods="7" coveredmethods="1"/>
<file name="index.tsx" path="C:\Users\Maycon_2\Documents\BootCamp\Nivel_3\gobarberapp\src\pages\SignIn\index.tsx">
<metrics statements="22" coveredstatements="7" conditionals="4" coveredconditionals="1" methods="7" coveredmethods="1"/>
<line num="38" count="1" type="stmt"/>
<line num="40" count="1" type="stmt"/>
<line num="41" count="1" type="stmt"/>
<line num="43" count="1" type="stmt"/>
<line num="45" count="1" type="stmt"/>
<line num="48" count="1" type="stmt"/>
<line num="50" count="0" type="stmt"/>
<line num="51" count="0" type="stmt"/>
<line num="54" count="0" type="stmt"/>
<line num="62" count="0" type="stmt"/>
<line num="67" count="0" type="stmt"/>
<line num="72" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="73" count="0" type="stmt"/>
<line num="75" count="0" type="stmt"/>
<line num="77" count="0" type="stmt"/>
<line num="80" count="0" type="stmt"/>
<line num="89" count="1" type="stmt"/>
<line num="117" count="0" type="stmt"/>
<line num="128" count="0" type="stmt"/>
<line num="134" count="0" type="stmt"/>
<line num="143" count="0" type="stmt"/>
<line num="152" count="0" type="stmt"/>
</file>
</package>
<package name="pages.SignUp">
<metrics statements="24" coveredstatements="0" conditionals="4" coveredconditionals="0" methods="7" coveredmethods="0"/>
<file name="index.tsx" path="C:\Users\Maycon_2\Documents\BootCamp\Nivel_3\gobarberapp\src\pages\SignUp\index.tsx">
<metrics statements="24" coveredstatements="0" conditionals="4" coveredconditionals="0" methods="7" coveredmethods="0"/>
<line num="34" count="0" type="stmt"/>
<line num="35" count="0" type="stmt"/>
<line num="36" count="0" type="stmt"/>
<line num="38" count="0" type="stmt"/>
<line num="39" count="0" type="stmt"/>
<line num="42" count="0" type="stmt"/>
<line num="43" count="0" type="stmt"/>
<line num="44" count="0" type="stmt"/>
<line num="46" count="0" type="stmt"/>
<line num="54" count="0" type="stmt"/>
<line num="58" count="0" type="stmt"/>
<line num="60" count="0" type="stmt"/>
<line num="65" count="0" type="stmt"/>
<line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="68" count="0" type="stmt"/>
<line num="70" count="0" type="stmt"/>
<line num="72" count="0" type="stmt"/>
<line num="75" count="0" type="stmt"/>
<line num="82" count="0" type="stmt"/>
<line num="107" count="0" type="stmt"/>
<line num="121" count="0" type="stmt"/>
<line num="134" count="0" type="stmt"/>
<line num="138" count="0" type="stmt"/>
<line num="146" count="0" type="stmt"/>
</file>
</package>
</project>
</coverage>
Loading

0 comments on commit 3534f33

Please sign in to comment.