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

Test code more accurately detects dependencies #153

Merged
merged 7 commits into from
Mar 2, 2023

Commits on Mar 2, 2023

  1. Configuration menu
    Copy the full SHA
    c644c29 View commit details
    Browse the repository at this point in the history
  2. Use separate types for packages and classes

    Before, some slices of strings contained both packages and strings, and
    we weren't clearly handling each correctly.
    
    Instead, be explicit about where we're using each.
    illicitonion committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    6e51484 View commit details
    Browse the repository at this point in the history
  3. Structure testonly data

    Previously we were treating testonly libraries as unique packages in
    their own namespace. Instead, treat them as having the correct package
    name, but embed the "is testonly" data in a struct so we can choose to
    filter on it flexibly as we wish.
    illicitonion committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    7565e6d View commit details
    Browse the repository at this point in the history
  4. Tests can exist without matching production code

    Previously, test targets assumed that they had matching production code
    they were testing, and would error if it couldn't be found.
    
    Instead, treat this as a normal occurrence, as often test code exists in
    its own package with no directly corresponding production code package.
    illicitonion committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    2283047 View commit details
    Browse the repository at this point in the history
  5. Support resolving test_suite helpers from other targets

    This only works if there was no non-test package providing the same
    package.
    
    We don't automatically set the visibility for the depended-on code -
    this is an explicit decision that should be made by a human as to
    whether that dependency should be allowed.
    illicitonion committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    ecdb9b5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1854942 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d8a746a View commit details
    Browse the repository at this point in the history