Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .github/ISSUE_TEMPLATE/question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
name: ❓ Question / Help
description: Ask a usage question or get help with the TestResults library
title: "[Question]: "
labels: ["question"]
assignees: []
body:
- type: markdown
attributes:
value: |
Thanks for reaching out! Please fill out the sections below so we can help you as quickly as possible.
For general discussion, you can also use
[GitHub Discussions](https://github.com/demaconsulting/TestResults/discussions).

- type: textarea
id: question
attributes:
label: Question
description: A clear and concise description of what you need help with.
placeholder: What would you like to know or understand?
validations:
required: true

- type: textarea
id: what-tried
attributes:
label: What Have You Tried?
description: Describe what you have already attempted, including any code or configuration you have used.
placeholder: |
```csharp
// Your code here
```
render: csharp

- type: textarea
id: expected
attributes:
label: Expected Outcome
description: A clear and concise description of what you expected to happen or what you are trying to achieve.
placeholder: Describe the outcome you are looking for...
validations:
required: true

- type: input
id: version
attributes:
label: Library Version
description: What version of the TestResults library are you using?
placeholder: e.g., 1.0.0
validations:
required: true

- type: dropdown
id: dotnet-version
attributes:
label: .NET Version
description: What version of .NET are you using?
options:
- ".NET 8"
- ".NET 9"
- ".NET 10"
- Other (please specify in additional context)
validations:
required: true

- type: textarea
id: additional-context
attributes:
label: Additional Context
description: Add any other context, screenshots, or links that may help answer your question.
placeholder: Any additional information...

- type: checkboxes
id: checklist
attributes:
label: Checklist
description: Please confirm the following
options:
- label: I have searched existing issues and discussions to ensure this has not been answered before
required: true
- label: I have provided a clear description of my question
required: true
9 changes: 9 additions & 0 deletions .github/agents/test-developer.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,15 @@ Common anti-patterns to avoid (not exhaustive):
// ✅ Good: Assert.HasCount(3, collection);
```

5. **Avoid Assert.IsTrue for string prefix checks** - Use `Assert.StartsWith` instead of wrapping
`string.StartsWith` in `Assert.IsTrue`, as it produces clearer failure messages that show the expected prefix
and actual value:

```csharp
// ❌ Bad: Assert.IsTrue(value.StartsWith("prefix"));
// ✅ Good: Assert.StartsWith("prefix", value);
```

## Defer To

- **Requirements Agent**: For test strategy and coverage requirements
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:

strategy:
matrix:
os: [windows-latest, ubuntu-latest]
os: [windows-latest, ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -137,8 +137,8 @@ jobs:
run: |
mkdir -p artifacts
echo "Capturing tool versions..."
# Create short job ID: build-win, build-ubuntu
OS_SHORT=$(echo "${{ matrix.os }}" | sed 's/windows-latest/win/;s/ubuntu-latest/ubuntu/')
# Create short job ID: build-windows, build-ubuntu, build-macos
OS_SHORT=$(echo "${{ matrix.os }}" | sed 's/-latest//')
JOB_ID="build-${OS_SHORT}"
dotnet versionmark --capture --job-id "${JOB_ID}" \
--output "artifacts/versionmark-${JOB_ID}.json" -- \
Expand Down Expand Up @@ -252,6 +252,7 @@ jobs:
uses: github/codeql-action/init@v4
with:
languages: csharp
build-mode: manual
queries: security-and-quality
config-file: ./.github/codeql-config.yml

Expand Down
Loading