2014-01-24 12 views
0

我在软件包中加载测试的问题依赖于被测试软件包的兄弟。实习生grunt无法加载正在测试的软件包的兄弟姐妹的软件包

当前凌乱的代码是https://github.com/lbod/delite/tree/intern-bforbes-setup。 此包的兄弟依赖性道场和DCL,因此,我使用的装载机实习生配置来设置的baseUrl到“..”即

loader: { 
    baseUrl: '..', 
    packages: [ 
     'delite', 
     'dojo', 
     'dcl' 
    ] 
} 

当装载咕噜测试:本地任务,测试-实习生/ intern.local实习生配置将通过咕噜加载,但如果我更改客户端HTML的URL(我能做到这一点,因为测试ERR的client.html单元测试不会解决intern.local

GET http://localhost:9000/tests-intern/intern.local.js 404 (Not Found) dojo.js:725 
Uncaught Error: Failed to load module tests-intern/intern.local from /tests-intern/intern.local.js (parent: *2) 

然而'd并没有关闭浏览器)至http://localhost:9000/__intern/client.html?baseUrl=%2F&config=delite/tests-intern%2Fintern.local&reporters=webdriver&sessionId=48ba4743-2475-478c-b7a2-d94d661782ae,测试将成功运行

感觉就像是赶上22日,因为如果我改变实习生咕噜任务config来config: 'delite/tests-intern/intern.local'任务不会intern.local.js

加载这是可能的,如果是怎样?

回答