Skip to content

Commit

Permalink
Added the generator unitary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
UO289845 committed Apr 27, 2024
1 parent 27a09db commit 5071094
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/src/12_testing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ ifndef::imagesdir[:imagesdir: ../images]
== Testing
Here lies a detailed description of some of the test of the application.

=== Generator tests
For the generator some unitary tests were developed. There are two different types.

==== Question tests
This ones are designed to test that the questions work perfectly. This does not test whether the questions are generated properly, for that is the resposability of other tests.
They do not require to access Wikidata, since they are testing the most internal parts of our application.

==== Generator tests
This tests are designed to test each one of the specific generators (for example, CapitalGenerator, VideogameDeveloperGenerator, DirectorGenerator, etc). As opposed to the question tests, this are focused on the correct access to Wikidata and generation of the questions.
They do require to access Wikidata, since they test how our application generates the questions, which are obtained from Wikidata.

=== Load testing
For load testing two different kind of test were designed. The first ones were based on the pressencce of a high number of users, across a "long" period of time.
On the other hand, the second ones were though with the idea of a big number of users arriving almost simmultaniously.
Expand Down

0 comments on commit 5071094

Please sign in to comment.