相关疑难解决方法(0)

如何优化Grails构建和测试执行速度?

有哪些技术可以缩短Grails项目构建和运行单元测试所需的时间?例如,Grails是否具有与Maven 3并行构建功能相同的功能

我目前正在使用Grails来构建我的应用程序(不是Gradle等),使用Spock测试,由Jenkins驱动.我找到了一个脚本来并行化单元和集成测试,但我正在寻找更多.

以下是一些相关问题:

更新:

testing parallel-processing grails multithreading unit-testing

7
推荐指数
1
解决办法
1818
查看次数

通过将Rails保留在内存中来加速开发期间的rails测试?

使用"rake"或"rake spec"在我的rails应用程序上运行rspec测试时,初始化Rails并开始运行测试需要很长时间.

有没有办法让Rails加载到内存中并对其运行测试?我希望有类似于使用"grails interactive"这样的东西如何加速grails测试执行但是对于Rails.

ruby testing rspec ruby-on-rails

2
推荐指数
1
解决办法
223
查看次数

Grails很难解决某些依赖关系

对于快速计算的快速计算机和网络,我的"解决依赖关系"大约需要30秒.

我看过这个问题Grails:部署时间非常慢."解决依赖关系..."需要10秒以上,而且我似乎没有任何"快照"依赖关系.我已经清理了我的常春藤缓存并强制重新下载所有内容,没有任何帮助.启用日志记录后,这几行就是违规者.没有任何内容正在下载,但考虑到我的网络流量,似乎每次都尝试远程查找内容.请注意,这些是仅在它们之前具有[某个数字]版本的条目,然后是不同的版本 - 这不是巧合 - 这是什么意思?如何阻止Grails试图找到这些略有不同的版本?

    .... these lines take 20+seconds, everything else is in the milliseconds ...
found commons-logging#commons-logging;1.1.1 in grailsPlugins
[1.1.1] commons-logging#commons-logging;[1.1, 2.0)
found org.apache.httpcomponents#httpclient;4.1.2 in default
[4.1.2] org.apache.httpcomponents#httpclient;[4.1, 5.0)
found org.apache.httpcomponents#httpcore;4.1.2 in default
found org.codehaus.jackson#jackson-core-asl;1.9.1 in default
[1.9.1] org.codehaus.jackson#jackson-core-asl;[1.4,)
found javax.mail#mail;1.4.4 in default
[1.4.4] javax.mail#mail;[1.4,)
Run Code Online (Sandbox Code Playgroud)

我正在使用两个必须是违法者的插件,并在下面列出了他们的dependencies.groovy.我已经尝试评论任何明确的远程URL. 

SimpleDB的:

    grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"

grails.project.dependency.resolution = {

    inherits "global"

    log "warn"

    String datastoreVersion = "1.0.0.M9"

    repositories {
        grailsPlugins()
        grailsHome()
        grailsCentral()
        mavenRepo "http://repo.grails.org/grails/core" //tried …
Run Code Online (Sandbox Code Playgroud)

grails plugins dependencies

0
推荐指数
1
解决办法
4118
查看次数