Skip to content

Commit

Permalink
Añadidas imagenes de tests unitarios y e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 27, 2024
1 parent f2618c8 commit 3b82e76
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 1 deletion.
Binary file added docs/images/12-authservice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/12-e2e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/12-gatewayservice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/12-statsservice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/12-userservice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/12-webapp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion docs/src/12_testing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@ This section details the results of the various types of tests that have been ca

== Unit Testing

We used Jest to perform unit testing on the application. We have written tests for all the components of the application, mocking the database and external services. The results of the tests are shown below:
We used Jest to perform unit testing on the application. We have written tests for all the components of the application, mocking the database and external services. All the tests passed successfully. The results of the tests are shown below:

=== Auth service
image::12-authservice.png[]

=== User service
image::12-userservice.png[]

=== Gateway service
image::12-gatewayservice.png[]

=== Stats service
image::12-statsservice.png[]

=== Webapp
image::12-webapp.png[]

== e2e Testing
We used puppeteer to perform end-to-end testing on the application. We have written tests for login, register, create group, and for the three gamemodes.

image::12-e2e.png[]

== Code coverage

Expand Down

0 comments on commit 3b82e76

Please sign in to comment.