Details
- Reviewers
amckinley - Maniphest Tasks
- T13216: 2018 Week 45-47 Bonus Content
- Commits
- rP533e4e13b35a: Add a `bin/herald test ...` for doing test runs via the CLI
Ran bin/herald test --object ... --type ... and got a sensible looking transcript in the UI.
Diff Detail
- Repository
- rP Phabricator
- Branch
- herald3
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 21148 Build 28752: Run Core Tests Build 28751: arc lint + arc unit
Event Timeline
src/applications/herald/management/HeraldTestManagementWorkflow.php | ||
---|---|---|
40 | Maybe we want to take a PHID as an argument in addition to an object name? | |
114 | It might make sense to test a disabled Herald rule, since the rule might be disabled for bugginess but someone wants to test it from here before reenabling it. |
src/applications/herald/management/HeraldTestManagementWorkflow.php | ||
---|---|---|
40 | withNames() is roughly withMonogramsOrPHIDs(...) and will load objects by PHID if PHIDs are passed in. | |
114 | We could theoretically offer single-rule test runs but it would be slightly tricky because of the "Another Herald Rule: ..." condition, which can mean that individual rules don't truly run in isolation. Reasonable-ish workarounds today are to remove the actions or add an impossible condition at the end of the rule you want to test. |