Issue#49 Add Integration Test instruction set for Core

This commit is contained in:
Gergely Hegedus 2022-01-28 00:24:22 +02:00
parent 9a63cdba38
commit 24cffc5057
7 changed files with 495 additions and 24 deletions

View file

@ -115,18 +115,16 @@ The actual server when running the application is [mockapi.io](https://www.mocka
Download the project, open it in [Android Studio](https://developer.android.com/studio?gclid=Cj0KCQjw1PSDBhDbARIsAPeTqrfKrSx8qD_B9FegOmpVgxtPWFHhBHeqnml8n4ak-I5wPvqlwGdwrUQaAtobEALw_wcB&gclsrc=aw.ds).
* In the gradle window you can see in the root gradle there is a "tests" group. In this group you will see a unitTests and androidTests task.
* First run the unitTests.
* First run the jvmTests.
* When that finished, build the application to your phone.
* Login with whatever credentials and look over the app, what will you test.
* When finished, run androidTests.
This will ensure the testing setup is proper, the project can resolve all the dependencies and such issues won't come up during your exercise.
If everything is right, change branch to codeKata and look for into the [codekata](./codekata) folder for the instruction sets.
### Structure
The Code Kata is structured into 5 different section, each section in different what we are testing and how we are testing it.
The Code Kata is structured into 6 different section, each section in different what we are testing and how we are testing it.
Since our layering is "app", "core" and "networking", of course we will jump right into the middle and start with core.
@ -153,6 +151,12 @@ We will also see how to test with LiveData.
We will introduce Rules, aka easy to reuse "Before" and "After" components.
#### Core Again
Open the [core again instruction set](./codekata/core.again.instructionset.md).
We complicate things here. We write our first Integraiton Test.
We will verify the Authentication classes and the networking module is working together like a charm.
#### App Robolectric Unit Tests.
Open the [app robolectric unit tests instruction set](./codekata/robolectric.instructionset.md).