File tree Expand file tree Collapse file tree 6 files changed +59
-6
lines changed
src/test/java/com/skyapartments/backend/unit
target/maven-status/maven-compiler-plugin
testCompile/default-testCompile Expand file tree Collapse file tree 6 files changed +59
-6
lines changed Original file line number Diff line number Diff line change
1
+ name : Basic Quality Check
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - feature/**
7
+ - fix/**
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ backend-basic :
12
+ name : Backend Basic Quality Check
13
+ runs-on : ubuntu-latest
14
+ defaults :
15
+ run :
16
+ working-directory : ./backend
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+
20
+ - name : Set up Java
21
+ uses : actions/setup-java@v4
22
+ with :
23
+ java-version : ' 17'
24
+ distribution : ' temurin'
25
+
26
+ - name : Run Backend Unit Tests
27
+ run : mvn test -Dtest='*UnitTest'
28
+
29
+ frontend-basic :
30
+ name : Frontend Basic Quality Check
31
+ runs-on : ubuntu-latest
32
+ defaults :
33
+ run :
34
+ working-directory : ./frontend
35
+ steps :
36
+ - uses : actions/checkout@v4
37
+
38
+ - name : Set up Node.js
39
+ uses : actions/setup-node@v4
40
+ with :
41
+ node-version : ' 18'
42
+
43
+ - name : Install Dependencies
44
+ run : npm install
45
+
46
+ - name : Run Frontend Unit Tests
47
+ run : npm run test:unit
Original file line number Diff line number Diff line change 13
13
import java .util .List ;
14
14
import java .util .Optional ;
15
15
16
- import org .junit .Test ;
16
+ import org .junit .jupiter . api . Test ;
17
17
18
- public class ApartmentServiceTest {
18
+
19
+ public class ApartmentServiceUnitTest {
19
20
20
21
private ApartmentService apartmentService ;
21
22
private ApartmentRepository apartmentRepository = mock (ApartmentRepository .class );
22
23
23
- public ApartmentServiceTest () {
24
+ public ApartmentServiceUnitTest () {
24
25
apartmentService = new ApartmentService (apartmentRepository );
25
26
}
26
27
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\main\java\com\skyapartmen
4
4
C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\main\java\com\skyapartments\backend\model\Apartment.java
5
5
C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\main\java\com\skyapartments\backend\repository\ApartmentRepository.java
6
6
C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\main\java\com\skyapartments\backend\service\ApartmentService.java
7
+ C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\main\java\com\skyapartments\backend\service\DataBaseInitializer.java
Original file line number Diff line number Diff line change 1
- com\skyapartments\backend\BackendApplicationTests.class
Original file line number Diff line number Diff line change 1
- C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\test\java\com\skyapartments\backend\BackendApplicationTests.java
1
+ C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\test\java\com\skyapartments\backend\e2e\ApartmentApiTest.java
2
+ C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\test\java\com\skyapartments\backend\integration\ApartmentServiceIntegrationTest.java
3
+ C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\test\java\com\skyapartments\backend\testutils\AbstractMySQLTest.java
4
+ C:\Users\eloys\Desktop\2025-sky-apartments\backend\src\test\java\com\skyapartments\backend\unit\ApartmentServiceUnitTest.java
Original file line number Diff line number Diff line change 7
7
"build" : " ng build" ,
8
8
"watch" : " ng build --watch --configuration development" ,
9
9
"test" : " ng test" ,
10
- "test:e2e" : " npx playwright test"
10
+ "test:e2e" : " npx playwright test" ,
11
+ "test:unit" : " ng test --include='src/app/components/**/*.spec.ts' --watch=false" ,
12
+ "test:integration" : " ng test --include='src/app/services/**/*.spec.ts' --watch=false"
11
13
},
12
14
"private" : true ,
13
15
"dependencies" : {
You can’t perform that action at this time.
0 commit comments