I have this - https://github.com/eppz/eppz-js - setup where tests run local just fine (4 passing). But deployed on Travis CI none of the test are runnig (0 passing).

See package.json, Gruntfile.js, .travis.yml, Travis builds. Can somebody take a brief look on it?

// Local

Running "mocha:test" (mocha) task
Testing: Tests/index.html
>> 4 passed! (0.00s)

Done, without errors.

// Travis CI

Running "mocha:test" (mocha) task
>> 0 passed! (0.00s)

Done, without errors.
有帮助吗?

解决方案

It looks like your Gruntfile.js references a Tests directory, but the only directory that exists is tests.

The filesystem on Travis CI is case-sensitive (Mac filesystems by default aren't), so either renaming the directory or changing the Gruntfile.js should help you run your tests on Travis CI.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top