2011-04-05 3 views
1

Maven 3.0.3, Grails 1.2.1을 사용하고 있습니다. 내가 Grails 프로젝트를 만들었지 만, 통합과 유닛 테스트를 만들었지 만, maven은 그것을 실행하지 않습니다. 테스트가 Grails 디렉토리 구조 (PROJECT_HOME/test/unit 및 PROJECT_HOME/test/integration)에 있고 Maven 디렉토리 구조가 아니라면 maven-grails 플러그인이 허용하지만 테스트가 실행되지 않는다고 생각했습니다. 아래는 완전한 출력입니다. Grails의 테스트 케이스를 "maven 테스트"로 만드는 방법은 무엇입니까?문제가 실행중인 maven-grails 테스트 케이스

감사합니다, - 데이브

 
davea-mbp2:socialmediaproxy davea$ mvn test 
[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building socialmediaproxy 0.1 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- grails-maven-plugin:1.2.1:validate (default) @ socialmediaproxy --- 
[INFO] 
[INFO] --- grails-maven-plugin:1.2.1:init (default) @ socialmediaproxy --- 
[INFO] 
[INFO] --- grails-maven-plugin:1.2.1:config-directories (default) @ socialmediaproxy --- 
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ socialmediaproxy --- 
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! 
[INFO] skip non existing resourceDirectory /Users/davea/Documents/workspace-sts-2.6.0.SR1/socialmediaproxy/src/main/resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ socialmediaproxy --- 
[INFO] Nothing to compile - all classes are up to date 
[INFO] 
[INFO] --- grails-maven-plugin:1.2.1:maven-compile (default) @ socialmediaproxy --- 
[INFO] Using Grails 1.2.1 
Running pre-compiled script 
Environment set to development 
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ socialmediaproxy --- 
[WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! 
[INFO] skip non existing resourceDirectory /Users/davea/Documents/workspace-sts-2.6.0.SR1/socialmediaproxy/src/test/resources 
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ socialmediaproxy --- 
[INFO] Nothing to compile - all classes are up to date 
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ socialmediaproxy --- 
[INFO] Surefire report directory: /Users/davea/Documents/workspace-sts-2.6.0.SR1/socialmediaproxy/target/surefire-reports 

------------------------------------------------------- 
T E S T S 
------------------------------------------------------- 
There are no tests to run. 

Results : 

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 

[INFO] 
[INFO] --- grails-maven-plugin:1.2.1:maven-test (default) @ socialmediaproxy --- 
[INFO] Using Grails 1.2.1 
Running pre-compiled script 
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 14.194s 
[INFO] Finished at: Tue Apr 05 14:23:44 CDT 2011 
[INFO] Final Memory: 55M/110M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.grails:grails-maven-plugin:1.2.1:maven-test (default) on project socialmediaproxy: Unable to start Grails: java.lang.reflect.InvocationTargetException: org/slf4j/impl/StaticLoggerBinder: org.slf4j.impl.StaticLoggerBinder -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
+0

안녕 Dave, 혹시 이것에 대한 해결책을 얻었습니까? 나는 같은 시점에 붙어 있고 나는 이것에 진행하는 방법을 모른다 :( – Prasann

답변

0

당신이 전화를해야 시험에 대한 명시 적 mvn grails:test-app

당신은 mvn grails:help

를 통해이 플러그인 가능한 모든 명령을 표시 할 수 있습니다 시도 플러그인 받는다는 - Grails의를 사용하려면
관련 문제