Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Leading path separator check failed under Windows #60

Description

@davisonja

I'm using ST3 on Windows 7 and had some trouble with PHPUnit not picking up the files properly.
I've ultimately traced it to the PhpunitCommand class with, for example,:

    # remove the folder from the configfile
    if configfile.startswith(folder):
        configfile = configfile[len(folder):]
        if configfile[0] == "/":
            configfile = configfile[1:]`

Which I replaced with

    # remove the folder from the configfile
    if configfile.startswith(folder):
        configfile = configfile[len(folder):]
        if configfile[0] == os.path.sep:
            configfile = configfile[1:]

which brought everything back into line. Am I the only one that's run into this?
My phpunit.xml is buried under folders in the project, so it's not in the 'top folder', which I've seen people recommend...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions