Skip to content

[Tigron]: roadmap and tracking epic for work on test tooling #3448

Open

Description

@apostasie

PR

Done

Pending review

Work in progress

Test suites to rewrite

  • STARTED: builder
  • completion
  • TODO: compose
  • STARTED: container
  • image
  • ipfs
  • STARTED: login
  • network
  • system
  • volume
  • main

Issues and features

  • P0: there is currently no protection against identically named tests - since we use identifiers based on test names, this could be a problem when inadvertently identical names
  • P0: remove dependency on *testing.T and replace by tig.T everywhere
  • P1: requirements should be able to manipulate the environment
  • P2: separate environment processing into a distinct struct for better debugability
  • P1: API breaking: change comparators signature (remove info + tig.T)
  • P0: Manager is evaluated before the command runs, while the Comparator in Output is evaluated after - this is confusing and prevents legit scenarios. Manager should only be evaluated after the command has run.
  • P0: rethink Data - need something to manipulate temp files ([Tigron]: revised Data interface #4081)
  • P1: separate cwd and temp dir
  • P1: following the rewrite of Command, test.Command is now a (mostly) empty shell - cleanup / refactor
  • P1: reintroduce Env, WD, etc to the command debug output
  • P1: add Config/Data details to the debug output
  • P1: currently, the command is executing inside data.TempDir(), so, there is no distinction between . and TempDir from the command perspective. We may want to address that.
  • P1: missing something like .AddCleanup() when a routine inside Setup does want to add additional cleaning
  • P2: use of data.Identifier in subtests hoping to get the parent testid may be error prone - rethink Identifier()?

Activity

  1. changed the title [-]Issues and requirements for next test-tooling updates[/-] [+][Tigron]: roadmap and tracking epic for work on test tooling[/+] on Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions