I wanted to write a unit test for an extension I developed. In order to do so, I wanted to test the example test case.
I can run all unit tests with arc unit --everything but I cannot run the example test case.
At the link, this is suggested
phabricator/ $ arc unit src/infrastructure/testing/testcase/ PASS <1ms* testAllIsRightWithTheWorld
However, the folder testcase does not exist
phabricator/ $ tree src/infrastructure/testing/ src/infrastructure/testing/ ├── fixture │ └── PhabricatorStorageFixtureScopeGuard.php ├── PhabricatorTestCase.php └── __tests__ └── PhabricatorTrivialTestCase.php
Trying to run the test with arc unit src/infrastructure/testing/__tests__ returns No tests to run.
How can I run this test successfully? I also copied the test PhabricatorTrivialTestCase.php to the src/extensions/__tests__ folder because this is where I want to drop my Unit tests for the extension but this also did not run the test.
Phabricator, libphutil and arcanist repositories have been updated today.