Jump to:

23486 Posts in 18995 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » 2.4 - Unit tests don't seem to run for sapphire and mysite

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 212 Views
  • Double-A-Ron
    Avatar
    Community Member
    604 Posts

    2.4 - Unit tests don't seem to run for sapphire and mysite Link to this post

    Looking at the docs (it's even an example given), I should be able to run just the tests in /sapphire/tests with this command:

    sapphire/sake dev/tests/module/sapphire

    Likewise for just those tests contained in /mysite/tests (NOTE: most of these tests are in a subdirectory of /mysite/tests):

    sapphire/sake dev/tests/module/mysite

    Neither return any output in the cli. Yet when I run an individual test contained in those directories, it's fine. Also running the above on other directories, such as /cms:

    sapphire/sake dev/tests/module/cms

    ... works as expected.

    It's obviously a configuration issue within or related to particular directories. but /sapphire seems strange.

    Anyone have any thoughts?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: 2.4 - Unit tests don't seem to run for sapphire and mysite Link to this post

    What system are you on? OS / PHPUnit version? What is the output if you run it in the web browser - dev/tests/module/sapphire. Sometimes it could be segfaulting so execution could just end.

    212 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.