Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add QuickLint, a CLI tool to detect focused specs, and optionally remove the focus. #1280

Merged
merged 10 commits into from May 12, 2024

Conversation

younata
Copy link
Member

@younata younata commented Mar 29, 2024

Oftentimes, teams who use Quick's spec focusing either have to be really diligent about removing focus, or write a script to check for focus (and either block the push, or fail CI). Usually the latter is chosen. In an effort to alleviate writing those scripts, I wrote QuickLint. Which detects focused specs in the current directory, and also allows you to defocus the specs.

QuickLint also serves as an example of how to write testable code, and how to use Quick, Nimble, and the new Swift Fakes packages.

Upcoming in this PR are also build tool and command plugins (for SwiftPM and Xcode) to lint and defocus your specs.

New feature, doesn't break the public API. So... minor version bump!

Copy link

1 Warning
⚠️ Big PR

Generated by 🚫 Danger

@younata younata marked this pull request as ready for review March 30, 2024 02:57
@younata
Copy link
Member Author

younata commented Mar 30, 2024

Apparently, to ship a binary with cocoapods, you have to actually build it yourself and then include that. Which is not something I'm interested in doing at the moment.

@younata
Copy link
Member Author

younata commented Mar 30, 2024

Lol, on Xcode 15.3, command plugins just... disappear after the first time you run them.

Screenshot 2024-03-29 at 8 08 12 PM

@younata younata marked this pull request as draft March 30, 2024 03:24
@younata younata marked this pull request as ready for review May 12, 2024 16:07
@younata younata merged commit f42e554 into main May 12, 2024
14 checks passed
@younata younata deleted the quicklint branch May 12, 2024 16:30
cgrindel-self-hosted-renovate bot added a commit to cgrindel/rules_swift_package_manager that referenced this pull request May 12, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [Quick/Quick](https://togithub.com/Quick/Quick) | minor | `from:
"7.5.0"` -> `from: "7.6.0"` |

---

### Release Notes

<details>
<summary>Quick/Quick (Quick/Quick)</summary>

### [`v7.6.0`](https://togithub.com/Quick/Quick/releases/tag/v7.6.0):
7.6.0 - QuickLint

[Compare
Source](https://togithub.com/Quick/Quick/compare/v7.5.0...v7.6.0)

### Highlights

- Add QuickLint, a CLI tool & Xcode plugin to detect focus specs and
remove the focus.
- Async DSL: Marks the async version of `sharedExamples` as unavailable.
Previously, `sharedExamples` would just not be found, and this clarifies
that `sharedExamples` is intentionally unavailable in the async DSL.

### Automated Changelog

#### What's Changed

- Bump rake from 13.1.0 to 13.2.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[Quick/Quick#1281
- named the context param aContext to match the actual protocol by
[@&#8203;Noobish1](https://togithub.com/Noobish1) in
[Quick/Quick#1283
- Add QuickLint, a CLI tool to detect focused specs, and optionally
remove the focus. by [@&#8203;younata](https://togithub.com/younata) in
[Quick/Quick#1280

#### New Contributors

- [@&#8203;Noobish1](https://togithub.com/Noobish1) made their first
contribution in
[Quick/Quick#1283

**Full Changelog**:
Quick/Quick@v7.5.0...v7.6.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDkuNCIsInVwZGF0ZWRJblZlciI6IjM2LjEwOS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant