pestphp / drift

[WIP] Command-line tool to migrate your PHPUnit tests to Pest
https://pestphp.com/docs/guides/drift
MIT License
28 stars 7 forks source link

How to run tests? #32

Closed nunomaduro closed 4 years ago

nunomaduro commented 4 years ago

Hey friends, Can you tell me how to run tests in drift? They seem to be failing in my machine.

owenvoke commented 4 years ago

I think I was just running vendor/bin/phpunit and it worked. 🤔 I guess we should probably add a Composer script for that?

owenvoke commented 4 years ago

Oh, I see what you mean... all the tests are failing at the moment. 😬 I think that's because of Rector dependencies. 🤔 I was hoping we could use rector/rector-prefixed with a specific version to prevent these types of issues happening in future, but it looks like that won't work because the classes aren't found.

Anyway, Rector v0.7.66 should resolve this as afaik (dev-master at the moment). 🤷🏻 I've opened #35 to show this. 👍🏻

owenvoke commented 4 years ago

Think this can be closed, tests are run using composer test now. 👍🏻