Add common StrSubject asserts

Open
#71 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
testing

Research direction

Start by locating the StrSubject implementation and its existing string-accessor assertions. Check how current assertions expose values, then add support for startswith, endswith, and actual as described in the issue. Done means these accessors work for StrSubject and the existing test suite covers their behavior.

Written by the indexing model from the issue text.

Description

enhancement

There's a few accessors that strings have that would make using StrSubject a bit easier:

  • startswith
  • endswith

Also expose .actual to easily get at the actual value. This makes it easier to massage a string obtained from elsewhere (e.g. target.executable().path().

Dominant language
Starlark
Stars
29
Forks
11
Avg merge
15h 15m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bazelbuild/rules_testing

All issues in bazelbuild/rules_testing

Similar issues

More Testing & QA issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.