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

Question counter. #175

Closed
wants to merge 83 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 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
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
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
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
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
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
391a382
Question counter view.
RicardoDiNu Apr 8, 2024
fa421b3
Question counter funcionality.
RicardoDiNu 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