Skip to content

Commit 1a67fcc

Browse files
committed
added test to Continuous integration
1 parent 9e93685 commit 1a67fcc

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

backend/src/test/resources/application.yml renamed to backend/src/main/resources/application-test.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ spring:
66
password:
77

88
jpa:
9-
database-platform: org.hibernate.dialect.H2Dialect
109
hibernate:
11-
ddl-auto: create-drop
10+
ddl-auto: create-drop
11+
database-platform: org.hibernate.dialect.H2Dialect
12+
13+
data:
14+
redis:
15+
host: localhost
16+
port: 6379
17+
18+
cache:
19+
type: none # 🔥 redis kapat
20+
21+
jwt:
22+
secret: testsecret
23+
expiration: 3600000

backend/src/test/java/com/TalentWorld/backend/BackendApplicationTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import org.junit.jupiter.api.Test;
44
import org.springframework.boot.test.context.SpringBootTest;
5+
import org.springframework.test.context.ActiveProfiles;
56

67
@SpringBootTest
8+
@ActiveProfiles("test")
79
class BackendApplicationTests {
810

911
@Test

0 commit comments

Comments
 (0)