Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Suite & Dependency Lifecycle

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

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
20/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
testing

Research direction

Start by tracing the class activator and the existing suite execution and re-entry behavior described in the issue. Then review the proposed Suite and Suite Dependents concepts, including IAfterSuite. Done requires an agreed lifecycle model and clear execution and dependency-ordering behavior, but the issue does not name files or tests to run.

Written by the indexing model from the issue text.

Description

enhancement

The current structure around re-entry and execution needs to be re-evaluated, the idea of a singleton lifecycle and chain execution are things that need to be thought about more. Currently, this seems to be a double concern for the class activator, and figuring out the lifecycles of that gets complicated. Instead it is easier to think about the activators as the dependencies of something that defines the lifecycle of the tests.

Suite

Current working Idea: Test Class Inheritance to Suite.

  • Unless specified by test that belongs to a class without inheritance will be treated as transient, it will create a transient class to run the test method and throw the object away after to run the next test. All test can now be run in parallel. This should be the core behavior, and most tests should need to reason about execution order.
  • The singleton lifecycle for the class should allow you to create behavior of execution. Different ideas for how to order test in a way that makes chain of execution obvious
    • ordered aka the order they are written in the class
    • custom, allow some inherited language syntax to order the execution of tests.

Suite Dependents

By default every test class is a Suite, or at least will be treated this way, so marking a class test class with the marker interface will allow the sort order of the execution to make sure that some test classes are run before others. IAfterSuite<TTestClass> would have no implementation details, but a test for the interface would allow dependencies to be tracked.

Dominant language
C#
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 bitcobblers/ZeUnit

All issues in bitcobblers/ZeUnit

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.