2012-11-16 2 views
0

maven을 사용하여 GWT에 기본 모듈로 프로젝트를 만들었습니다. 및 * Test.java 테스트 케이스 클래스를 변경하고 명령 MVN 패키지GWT에있는 initializationError TestCase 실행

성공적 테스트 케이스 실행되지 않고 실행하고, 오류 테스트를 종료한다 : initializationError (com.gwt.example. project.testing.client.GwtTesttestingTest) : com/google/gwt/dev/cfg/Condition.

내가 추가 할 경우, <mode>htmlunit</mode><htmlunit>IE7</htmlunit>이 pom으로하고 내가 마우스 오른쪽 버튼을 클릭하여 이클립스 테스트 케이스를 실행하고 GWT Junit와 테스트로 실행하려고하면 다음 gwt:test 목표는

잘 작동이 중지하지 않고 실행에 계속 ,

이것은 eclipse에서 테스트 케이스를 실행하는 동안의 결과입니다. 제품군을 통해 하나의 GWTTestCase를 실행 https://github.com/fastnsilver/gwt-datehandling-example

:

Validating newly compiled units 
    Ignored 12 units with compilation errors in first pass. 
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors. 
Starting http://10.1.1.2:57354/com.gwt.example.project.testing.testingJUnit.JUnit/junit-standards.html?gwt.codesvr=10.1.1.2:57348 on browser FF3 
200 - GET /com.gwt.example.project.testing.testingJUnit.JUnit/junit-standards.html?gwt.codesvr=10.1.1.2:57348 (10.1.1.2) 2449 bytes 
logging for HtmlUnit thread 
    [WARN] Expected content type of 'application/javascript' or 'application/ecmascript' for remotely loaded JavaScript element at 'http://10.1.1.2:57354/com.gwt.example.project.testing.testingJUnit.JUnit/com.gwt.example.project.testing.testingJUnit.JUnit.nocache.js', but got 'application/x-javascript'. 
200 - GET /com.gwt.example.project.testing.testingJUnit.JUnit/com.gwt.example.project.testing.testingJUnit.JUnit.nocache.js (10.1.1.2) 6344 bytes 
200 - GET /com.gwt.example.project.testing.testingJUnit.JUnit/hosted.html?com_gwt_example_project_testing_testingJUnit_JUnit (10.1.1.2) 11757 bytes 
200 - GET /com.gwt.example.project.testing.testingJUnit.JUnit/gwt/standard/standard.css (10.1.1.2) 26953 bytes 
Validating newly compiled units 
    Ignored 12 units with compilation errors in first pass. 
Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors. 
Module com.gwt.example.project.testing.testingJUnit.JUnit has been loaded 
200 - POST /com.gwt.example.project.testing.testingJUnit.JUnit/junithost (10.1.1.2) 434 bytes 
All clients connected (Limiting future permutations to: gecko1_8) 
200 - POST /com.gwt.example.project.testing.testingJUnit.JUnit/junithost (10.1.1.2) 434 bytes 
[WARN] Too many clients: expected 1, found 2 
200 - POST /com.gwt.example.project.testing.testingJUnit.JUnit/junithost (10.1.1.2) 434 bytes 
[WARN] Too many clients: expected 1, found 3 
200 - POST /com.gwt.example.project.testing.testingJUnit.JUnit/junithost (10.1.1.2) 434 bytes 
[WARN] Too many clients: expected 1, found 4 
200 - POST /com.gwt.example.project.testing.testingJUnit.JUnit/junithost (10.1.1.2) 434 bytes 
[WARN] Too many clients: expected 1, found 5 
200 - POST /com.gwt.example.project.testing.testingJUnit.JUnit/junithost (10.1.1.2) 434 bytes 

답변

0

현재 경량 프로젝트를 살펴있을 수 있습니다.

일부 프로필이 정의되어 있으므로 README를 살펴보십시오. 부트 스트래핑 GWT 테스트를위한 Maven pom.xml의 대부분은 문서에서 직접 가져 왔습니다.

관련 문제