Closed thet closed 10 years ago
Odd, I just started from scratch and the Accessibility test error occurred for me.
I couldn't reproduce the other errors you've uncovered though.
What version of node/npm are you on? Could that make a diff?
I run node version v0.10.29 i thought it may have something to do with disc caches.
to be more precise about my success history with mockup:
there is a PhantomJS command line option for disc caches: http://phantomjs.org/api/command-line.html
--disk-cache=[true|false] enables disk cache (at desktop services cache storage location, default is false). Also accepted: [yes|no].
together with a custom launcher as described at: https://github.com/karma-runner/karma-phantomjs-launcher this might solve the problem.
but current status is: not successful.
Update: I can run the tests with make test-dev
and only get the accessibility error (looks like that one was introduced with the i18n change). Still I cannot run the PhantomJS based tests with make test
. I still suspect that this has something to do with caches, but I don't really understand it. I even use a mockup-core fork with a custom PhantomJS launcher, which deactivates disk caches: https://github.com/thet/mockup-core/commit/a8741723ef7c68156107f827dbfe59099fc0ddce
... but with the same result.
However, at least I can run make test-dev
- that's OK for now.
huh, I had tested with the i18n change and it didn't break before. Also, tests with travis didn't break. The i18n changes don't touch Accessibility. I'll look at it right now quick.
problem seems to be that in the test, using new Date() returns a date from 1969.
I modified the test so it wouldn't fail for now....
Last week I successfully run the tests, but now, without any (significant) changes to mockup, they don't. I'm using the master branch of mockup from github.com/plone/mockup. I have
PhantomJS 1.9.7
installend and followed the README and did amake bootstrap
following amake test
.Besides of test failures, the test doesn't get past the
Writing coverage
step (last line from the following output).I get this test output: