Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Update and cleanup TESTING.md (#87)
Browse files Browse the repository at this point in the history
Summary:
The public docs still refer to `PHPUnit` as the testing framework, but the listed CLI command doesn't exist. The .travis.sh script shows `hacktest` so I assume that's what should be used instead.

Also fixed an off-by-one list typo :)
Pull Request resolved: #87

Reviewed By: 2d2d2d2d2d

Differential Revision: D20558978

Pulled By: yns88

fbshipit-source-id: 893e69c37f1ce66f09544d6ebc470d17b1ada66f
  • Loading branch information
bigfootjon authored and facebook-github-bot committed Mar 20, 2020
1 parent 84a8138 commit b4a686e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TESTING.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Running The Automatic tests

- run `hh_client` to make sure there are no Hack errors.
- run `vendor/bin/phpunit` from FBShipIt's directory to run FBShipIt's own tests.
- run `vendor/bin/hacktest tests` from FBShipIt's directory to run FBShipIt's own tests.

# Automated Tests For Your Project

- run `hh_client` to make sure there are no Hack errors.
Add an empty `.hhconfig` file to your project root if necessary.
- look at [fb-examples/tests/](https://github.com/facebook/fbshipit/tree/master/fb-examples/tests) for examples of automated tests with PHPUnit.
- look at [fb-examples/tests/](https://github.com/facebook/fbshipit/tree/master/fb-examples/tests) for examples of automated tests with [HackTest](https://github.com/hhvm/hacktest).

# Manual Testing

Expand All @@ -16,7 +16,7 @@ The easiest way to manually test is to re-run FBShipIt over commits that have al
- Clone your destination repository
- Rewind it (eg `git reset --hard origin/master^^^`) so there are revisions that are not in the branch
- Run with `--skip-push --source-repo-dir=/path/to/your/new/clone --skip-destination-pull'
-

For example:

```
Expand Down

0 comments on commit b4a686e

Please sign in to comment.