Page MenuHomePhabricator

Improve `ArcanistLinterStandardTestCase`
Needs ReviewPublic

Authored by wjiang on Apr 24 2017, 1:04 AM.
Tags
None
Referenced Files
F15492919: D17783.id42759.diff
Sat, Apr 12, 7:43 PM
F15486570: D17783.id42758.diff
Thu, Apr 10, 8:11 AM
F15485654: D17783.diff
Thu, Apr 10, 1:32 AM
F15484242: D17783.id42867.diff
Wed, Apr 9, 5:14 PM
F15475943: D17783.diff
Mon, Apr 7, 1:19 AM
F15475660: D17783.id42758.diff
Sun, Apr 6, 9:20 PM
F15421929: D17783.id42867.diff
Sat, Mar 22, 3:40 AM
F15420471: D17783.id42868.diff
Fri, Mar 21, 2:13 PM

Details

Summary

Ref T12631. Let unit test actually test ArcanistLinterStandard.

Test Plan

Run unit test

Diff Detail

Repository
rARC Arcanist
Branch
arcpatch-D17783
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 16793
Build 22412: arc lint + arc unit

Event Timeline

joshuaspence added a subscriber: joshuaspence.

LGTM. @epriestley, it would be greatly appreciated if this could be accepted upstream. We have a large number of XHPAST linter rules (I think ~200) and we want to write integration tests to ensure that they play nicely together.

src/lint/linter/standards/__tests__/ArcanistLinterStandardTestCase.php
4

You should extend ArcanistLinterTestCase instead

5–8

You might want to leave this.

8

Maybe call this getBaseLinter?

10

I think this should be called getStandard

15–18

Ideally, we should have some sort of $linter->applyStandard($standard) method... because this code is currently duplicated from ArcanistLinter

wjiang marked 5 inline comments as done.
  • Add applyStandard