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

Commit

Permalink
Add test for prod mode (#16)
Browse files Browse the repository at this point in the history
Test Plan:

Reverted afa5fa4

Ran `HH_FORCE_IS_DEV=0 vendor/bin/hacktest tests/RouterTest.php`

Test failed.
  • Loading branch information
fredemmott authored Aug 28, 2019
1 parent 903729e commit b4ae8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ composer install
hh_client

vendor/bin/hacktest tests/
# In prod, we have caching and no fallback handler. Check it.
HH_FORCE_IS_DEV=0 vendor/bin/hacktest tests/
if !(hhvm --version | grep -q -- -dev); then
vendor/bin/hhast-lint
fi
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require-dev": {
"facebook/fbexpect": "^2.0",
"hhvm/hhast": "^4.0",
"hhvm/hhvm-autoload": "^2.0",
"hhvm/hhvm-autoload": "^2.0.8",
"hhvm/hacktest": "^1.1",
"usox/hackttp": "^0.3"
}
Expand Down

0 comments on commit b4ae8a9

Please sign in to comment.