hhvm / hacktest

A unit testing framework for Hack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate PhpUnit to Hacktest methods that start with `should` instead of `test`.

danon opened this issue · comments

My all tests in PhpUnit start with should instead of test, and they also have @test annotation.

Is there a way I can use your migrate tool?

It would probably be easiest to use sed or IDE global find-and-replace to replace function should with function test, or function testThat (whatever makes sense for hte majority of your function names), then use the migration tool

Yea, you night not believe, but I've already thought about that.

So, your answer is no?

No, the migration does not currently support this.

Feel free to file an issue or send a pull request over at https://github.com/hhvm/hhast to add support for renaming @test methods to start with test