Tag: 茉莉花

如何在Docker容器中运行unit testing

我创build了一个运行我的angular度项目的docker容器,现在我试图在容器内运行我的unit testing失败。 我需要一个无头浏览器来运行我的testing,PhantomJS对于我的口味来说太麻烦了,在运行testing时也会给Chrome带来不同的结果。 在这里,我提供了我的Dockerfile: # download (or use if it's in cache) the latest official image from node FROM node:latest # create directory in the container and set all privileges RUN mkdir -p /usr/src/app && chmod 777 /usr/src/app # make the directory available for following commands WORKDIR /usr/src/app # copy all local's frontend content to […]

是否有可能在docker中运行我的meteortesting?

一旦我用我的Meteor应用程序构build了我的容器,我真的很想去 docker run me/myapp velocity test-app –ci –once –settings settings-test.json 如果成功,它会以0退出,在这种情况下,我会将它推送到docker中心,将其部署到某处等。 但是,当我尝试这个只是挂起: [velocity] is in continuous integration mode [velocity] mocha is starting a mirror at http://localhost:56381/. [velocity] *** Meteor Tools is installing *** This takes a few minutes the first time. [velocity] You can see the mirror logs at: tail -/app/.meteor/local/log/mocha.log 我使用茉莉花按照https://github.com/meteor-velocity/velocity-examples (我开始与摩卡,但切换,看看是否有任何区别)。 检查我的.meteor/local/log文件我发现jasmine-client- unit.log有这在底部: […]