[Logo] JForum - Powering Communities
  [Search] 搜尋   [Recent Topics] 最新主題   [Hottest Topics] 熱門主題   [Top Downloads] 熱門下載   [Groups] 回首頁 
[Register] 會員註冊 /  [Login] 登入 


JForum 2.8.3 is out with various fixes and improvements. Read all about it here

Running the JForum2 unit tests RSS feed
討論區首頁 » Developer Forum
發表人 內容
udittmer


註冊時間: 2013/2/21
文章: 422
離線
This post is more of a note to myself than a question, but if anyone has suggestions on how to make the process smoother, I'm all ears.

1) Temporarily remove the net.jforum.summary.SummaryTest.java file. The test never finishes, although that may be more of a Quartz issue than an issue with the test itself.

2) Add the jforum-custom.conf file from your installation to src/main/config - it contains the DB configurations needed to run the tests.

3) Temporarily remove src/main/config/database/postgresql/postgresql.properties (or the corresponding file for whatever DB you're using for the tests). The file is loaded after the jforum-custom.properties, and thus overrides it.

An alternative to steps 2 and 3 would be to edit src/main/config/database/postgresql/postgresql.properties so it contains the values appropriate to your DB.

4) Then perform a clean build when running the tests.

5) Afterwards, undo the above changes before creating the actual build.

Ping & Net - my free Android app for TCP/IP network diagnostics
[Email] [WWW]
 
討論區首頁 » Developer Forum
前往:   
行動版
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer