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

Entregable 3 #186

Merged
merged 146 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
3f5f19e
Test sonar cloud
Pelayori Mar 9, 2024
d75eada
Test sonar cloud
Pelayori Mar 9, 2024
e260799
Test sonar cloud
Pelayori Mar 9, 2024
7b31bc7
Test sonar cloud
Pelayori Mar 9, 2024
e349dc9
Test sonar cloud
Pelayori Mar 9, 2024
62f8c06
Test sonar cloud
Pelayori Mar 10, 2024
0a09eb5
Test mysql connection for testing
Pelayori Mar 10, 2024
ed0b325
Test mysql connection for testing
Pelayori Mar 10, 2024
15d11ba
Test mysql connection for testing
Pelayori Mar 10, 2024
ecd26cc
Test mysql connection for testing
Pelayori Mar 10, 2024
d2cbb9e
Enable full error stacktrace
Pelayori Mar 10, 2024
ff22cdc
Enable full error stacktrace
Pelayori Mar 10, 2024
1dfa632
Enable full error stacktrace
Pelayori Mar 10, 2024
77d35b4
Enable full error stacktrace
Pelayori Mar 10, 2024
eeaa992
Enable full error stacktrace
Pelayori Mar 10, 2024
9ca2045
Enable full error stacktrace
Pelayori Mar 10, 2024
c25ff9e
Enable full error stacktrace
Pelayori Mar 10, 2024
5d21b6b
Enable full error stacktrace
Pelayori Mar 10, 2024
e76cefc
Merge branch 'develop' into unit-tests
Pelayori Mar 10, 2024
05d0827
French language added, flags removed, now the button that changes the…
uo288061 Mar 16, 2024
0ca6a86
changes in signup.html
uo288061 Mar 16, 2024
29e19e4
added error message on login
uo288061 Mar 16, 2024
258da91
Merge pull request #156 from Arquisoft/someChanges
uo287545 Mar 17, 2024
babf582
Merge branch 'master' into unit-tests
Pelayori Mar 18, 2024
7a5942c
Test unit tests
Pelayori Mar 18, 2024
2481cf0
Test unit tests
Pelayori Mar 18, 2024
2fd46cb
Test unit tests
Pelayori Mar 18, 2024
1f7721d
Test unit tests
Pelayori Mar 18, 2024
271b9da
Test unit tests
Pelayori Mar 18, 2024
6a0384a
Test unit tests
Pelayori Mar 18, 2024
74e2218
Test unit tests
Pelayori Mar 18, 2024
ca48a05
Test unit tests
Pelayori Mar 18, 2024
06361ae
Test unit tests
Pelayori Mar 18, 2024
5f626ae
Test unit tests
Pelayori Mar 18, 2024
4435f1b
Test unit tests
Pelayori Mar 18, 2024
d3b1ec8
Test unit tests
Pelayori Mar 18, 2024
10decf0
Test unit tests
Pelayori Mar 18, 2024
500a363
Fix some styling issues
Pelayori Mar 19, 2024
3e066d3
Test no headless
Pelayori Mar 19, 2024
ce54744
Test no headless
Pelayori Mar 19, 2024
572d8b3
Tests fail case
Pelayori Mar 19, 2024
4303d3e
Finish test framework
Pelayori Mar 19, 2024
d9596cd
Finish test framework
Pelayori Mar 19, 2024
940dab1
Remove extra test test
Pelayori Mar 19, 2024
76e4d3d
Merge pull request #158 from Arquisoft/unit-tests
Pelayori Mar 19, 2024
b8ea757
questions in French
uo288061 Mar 19, 2024
6577f42
Add cucumber for integration tests
Pelayori Mar 31, 2024
36a10aa
Merge pull request #161 from Arquisoft/unit-tests
uo287545 Mar 31, 2024
85b2774
PlayerServiceImpl.addNewPlayer() unit tests
uo287568 Apr 1, 2024
3052d26
Fixed the SonarLint errors for the AbstractQuestionGenerator except t…
uo287545 Apr 1, 2024
c04b889
Fixed the SonarLint errors for the WiqEs04bApplication.java.
uo287545 Apr 1, 2024
9e34f40
Unit tests (#162)
Pelayori Apr 1, 2024
f87b898
PlayerServiceImpl getUsers, getUserByEmail y getUserByUsername unit t…
uo287568 Apr 1, 2024
ce51616
Unit tests (#163)
Pelayori Apr 1, 2024
8f6fa3a
Merge pull request #159 from Arquisoft/someChanges
Pelayori Apr 2, 2024
5b7dac3
Fixed SecurityHotSpots
uo287545 Apr 2, 2024
62477aa
Merge pull request #165 from Arquisoft/sonar-lint-fix
Pelayori Apr 2, 2024
8ac8de2
basics units tests for questions generator
uo288061 Apr 2, 2024
9feed57
units tests for Associations class
uo288061 Apr 3, 2024
5f28ad3
units tests for Category class
uo288061 Apr 3, 2024
026223d
units tests for Category class
uo288061 Apr 3, 2024
9df19db
units tests for GameSession class
uo288061 Apr 3, 2024
85cd684
Added cucumber scenarios
uo287545 Apr 4, 2024
00efa0a
Fixed some deprecated Thymeleaf properties
uo287545 Apr 4, 2024
e29fb2d
Added a utility class to extract properties from the resource bundles
uo287545 Apr 4, 2024
367eb37
First batch of cucumber scenarios for the main page passing
uo287545 Apr 4, 2024
11b5526
Added a utility method to check that an element is not present on a p…
uo287545 Apr 4, 2024
835bb04
Added some tests to check the things that the not registered user sho…
uo287545 Apr 4, 2024
e7e1c19
Fix code coverage (#167)
Pelayori Apr 5, 2024
f42e572
fix unitTests
uo288061 Apr 5, 2024
d3b30cd
Merge remote-tracking branch 'origin/develop' into unitTests
uo288061 Apr 5, 2024
592fb21
unit tests for Player class
uo288061 Apr 5, 2024
4792339
unit tests for Question class
uo288061 Apr 5, 2024
c009d9f
Added the first scenario for the sign-up process
uo287545 Apr 5, 2024
e58048c
Added properties to internationalize the sign-up process
uo287545 Apr 5, 2024
b67c9d6
Added scenario for the sign-up with errors with the email format
uo287545 Apr 5, 2024
eab2f9b
Added more scenarios for the errors during the sign-up process
uo287545 Apr 6, 2024
55436f3
Add openapi, and CRUD rest api for Questions and Players
Pelayori Apr 6, 2024
93b8190
continue fixing unit tests
uo288061 Apr 6, 2024
73f6e7d
Merge pull request #168 from Arquisoft/unitTests
Pelayori Apr 6, 2024
e0ca426
Merge pull request #169 from Arquisoft/open-api
Pelayori Apr 6, 2024
343f5a7
continue fixing unit tests (2)
uo288061 Apr 6, 2024
7e5370f
Merge pull request #170 from Arquisoft/unitTests
Pelayori Apr 6, 2024
b5729b0
AnswerServiceImpl unit tests
uo287568 Apr 6, 2024
9c88746
Tests for Player REST API
Pelayori Apr 6, 2024
a5271d1
Add some more tests cases
Pelayori Apr 6, 2024
f970901
Question REST API unit tests
Pelayori Apr 6, 2024
e68d153
Test fix for tests
Pelayori Apr 6, 2024
93d6053
Test fix for tests
Pelayori Apr 6, 2024
df7aa25
Test fix for tests
Pelayori Apr 6, 2024
5769599
Test fix for tests
Pelayori Apr 6, 2024
f2d5235
Fix some hotspots and code smells
Pelayori Apr 6, 2024
eedabb3
Fix some hotspots and code smells
Pelayori Apr 6, 2024
db166ee
Merge pull request #171 from Arquisoft/open-api
uo287545 Apr 6, 2024
6e476f1
Merge branch 'develop' into integration-tests
Pelayori Apr 6, 2024
95c2cbe
Attempt fix error
Pelayori Apr 6, 2024
b6a53cb
Remove some unused things
Pelayori Apr 6, 2024
7399af0
CategoryServiceImpl unit tests
uo287568 Apr 6, 2024
b243c13
Added the scenarios for the log-in
uo287545 Apr 7, 2024
695e6e3
Added the first scenario for the API key page
uo287545 Apr 7, 2024
a6aad18
Added second scenario for the API key page
uo287545 Apr 7, 2024
5292fc6
Added scenario to check not existent custom error page
uo287545 Apr 7, 2024
cd6714c
Added scenario to check the access to the personal ranking page
uo287545 Apr 7, 2024
b5d3aa6
GameSessionImpl unit tests
uo287568 Apr 7, 2024
58b3269
Merge branch 'develop' into testUnitarios
uo287568 Apr 7, 2024
319fe99
Merge branch 'develop' into testUnitarios
Pelayori Apr 7, 2024
ebc304e
Merge remote-tracking branch 'origin/testUnitarios' into testUnitarios
Pelayori Apr 7, 2024
7cdbb03
Test question generation and fixed repeated questions being added to …
uo287545 Apr 7, 2024
fee2a89
Added a scenario for the game
uo287545 Apr 7, 2024
cae0dbc
Fixed an error between unit tests and Selenium tests
uo287545 Apr 7, 2024
f25278d
Changed the name of the user that plays the game to try to fix the er…
uo287545 Apr 7, 2024
e46612d
Trying to fix error while passing tests on actions
uo287545 Apr 7, 2024
5bf7ffb
Arreglados todos los tests
Pelayori Apr 7, 2024
f20497f
Trying to fix error while passing tests on actions
uo287545 Apr 7, 2024
c8d9d0a
Arreglados todos los tests
Pelayori Apr 7, 2024
59f2726
Trying to fix error while passing tests on actions
uo287545 Apr 7, 2024
a11ff63
Arreglados todos los tests
Pelayori Apr 7, 2024
fbdd71d
Arreglados todos los tests
Pelayori Apr 7, 2024
46ff8b3
Trying to fix error while passing tests on actions
uo287545 Apr 7, 2024
bcbb303
Arreglados todos los tests
Pelayori Apr 7, 2024
32ac3ba
Trying to fix error while passing tests on actions
uo287545 Apr 7, 2024
b712fef
Last part of the test put on hold
uo287545 Apr 7, 2024
ca7dd7e
Merge pull request #173 from Arquisoft/testUnitarios
Pelayori Apr 7, 2024
c9f1eda
Merge pull request #172 from Arquisoft/integration-tests
Pelayori Apr 7, 2024
33e6e90
Fix compile error
Pelayori Apr 7, 2024
64457ec
Actualización de decisiones arquitectónicas
uo287568 Apr 7, 2024
391a382
Question counter view.
RicardoDiNu Apr 8, 2024
fa421b3
Question counter funcionality.
RicardoDiNu Apr 8, 2024
b23dc62
Merge pull request #176 from Arquisoft/review2-changes
Pelayori Apr 8, 2024
711d29c
Merge pull request #174 from Arquisoft/actualizacionesDoc
Pelayori Apr 8, 2024
a72882b
Correct/Incorrect logos update to svg
RicardoDiNu Apr 8, 2024
234eb43
Stopwatch logo update to svg
RicardoDiNu Apr 8, 2024
e6d2a57
Game buttons style update
RicardoDiNu Apr 8, 2024
4a925da
Some style changes
RicardoDiNu Apr 8, 2024
1115cb2
Some style changes
RicardoDiNu Apr 8, 2024
45e00a1
Fix some SonarCloud issues
RicardoDiNu Apr 8, 2024
a66f387
Merge pull request #179 from Arquisoft/review2-changes
uo287545 Apr 8, 2024
81dfb8c
Fixed glossary error
uo287545 Apr 8, 2024
7128d21
Removed unnecessary content from the Domain model
uo287545 Apr 8, 2024
0510505
Fixed Domain Model
uo287545 Apr 8, 2024
c8b95e5
Merge pull request #183 from Arquisoft/last-fixes-before-3rd-deliver
Pelayori Apr 8, 2024
9f9c2d6
Customize OpenAPI
Pelayori Apr 8, 2024
48379ef
Merge pull request #185 from Arquisoft/open-api
Pelayori Apr 8, 2024
1dda1f4
Removed unused catch clauses and personalized exceptions
uo287545 Apr 8, 2024
b13c746
Fixed unit tests
uo287545 Apr 8, 2024
af04f3e
Merge pull request #187 from Arquisoft/last-fixes-before-3rd-deliver
Pelayori Apr 8, 2024
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
77 changes: 77 additions & 0 deletions .github/workflows/unit-tests-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Application tests

on:
push:
branches:
- master
- unit-tests
- develop
pull_request:
types: [opened, synchronize, reopened]

jobs:
app-tests-analyze:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test_database
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3

steps:
- uses: actions/checkout@v2

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: |
~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2

- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: '17'

- name: Add exec permission to mvnw
run: chmod +x mvnw

- name: Compile the application
run: ./mvnw -B clean install -DskipTests=true

- name: Start the application
run: |
./mvnw spring-boot:run > logs.txt 2>&1 &
echo $! > spring-boot-app.pid
sleep 5
env:
SPRING_DATASOURCE_URL: jdbc:mysql://localhost:3306/test_database
SPRING_DATASOURCE_USERNAME: root
SPRING_DATASOURCE_PASSWORD: root
SPRING_DATASOURCE_DRIVER_CLASS_NAME: com.mysql.cj.jdbc.Driver
SPRING_PROFILES_ACTIVE: test
- name: Check listening ports
run: ss -tuln
- name: Run tests
run: |
./mvnw org.jacoco:jacoco-maven-plugin:prepare-agent verify -Dspring.datasource.url=jdbc:mysql://localhost:3306/test_database -Dspring.datasource.username=root -Dspring.datasource.password=root -Dspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
env:
SPRING_PROFILES_ACTIVE: test
headless: true
EXCLUDE_JUNIT: true
- name: Show app logs
if: always()
run: |
cat logs.txt
- name: Shut down the application
run: |
kill $(cat spring-boot-app.pid)
- name: Collect Jacoco report and send to Sonar
run: |
./mvnw org.jacoco:jacoco-maven-plugin:report sonar:sonar -Dsonar.projectKey=Arquisoft_wiq_es04b -Dsonar.organization=arquisoft -Dsonar.branch.name=${{ github.ref }} -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dspring.profiles.active=test
150 changes: 0 additions & 150 deletions database/hsqldb/index.html

This file was deleted.

5 changes: 0 additions & 5 deletions database/hsqldb/integration/ant/preprocessor/build.cmd

This file was deleted.

Loading
Loading