|
| 1 | +name: "🧪 Improve Tests" |
| 2 | +description: "Request new or improved test coverage for an indicator or feature" |
| 3 | +title: "[Tests] " |
| 4 | +labels: ["squad", "testing"] |
| 5 | +body: |
| 6 | + - type: markdown |
| 7 | + attributes: |
| 8 | + value: | |
| 9 | + ## Test Improvement |
| 10 | + Use this template to request new or improved test coverage. |
| 11 | +
|
| 12 | + - type: input |
| 13 | + id: indicator-name |
| 14 | + attributes: |
| 15 | + label: Indicator / Feature Name |
| 16 | + description: "Which indicator or feature needs test work?" |
| 17 | + placeholder: "e.g., SuperTrend, liquidity_sweeps, date_range" |
| 18 | + validations: |
| 19 | + required: true |
| 20 | + |
| 21 | + - type: dropdown |
| 22 | + id: test-type |
| 23 | + attributes: |
| 24 | + label: What needs to happen? |
| 25 | + options: |
| 26 | + - Add missing test file (indicator has no tests at all) |
| 27 | + - Add edge case tests (empty data, single row, NaN handling) |
| 28 | + - Add signal function tests |
| 29 | + - Add stats function tests |
| 30 | + - Add polars DataFrame tests |
| 31 | + - Fix flaky or broken tests |
| 32 | + - Improve test assertions (too weak / not checking output values) |
| 33 | + validations: |
| 34 | + required: true |
| 35 | + |
| 36 | + - type: input |
| 37 | + id: current-test-file |
| 38 | + attributes: |
| 39 | + label: Current Test File (if exists) |
| 40 | + description: "Path to the existing test file, or leave blank if none exists" |
| 41 | + placeholder: "e.g., tests/indicators/test_supertrend.py" |
| 42 | + validations: |
| 43 | + required: false |
| 44 | + |
| 45 | + - type: textarea |
| 46 | + id: whats-missing |
| 47 | + attributes: |
| 48 | + label: What's Missing or Broken? |
| 49 | + description: | |
| 50 | + Describe what tests are missing or what's wrong with existing tests. |
| 51 | + placeholder: | |
| 52 | + - No test file exists for this indicator |
| 53 | + - Missing tests for the signal function |
| 54 | + - No edge case tests for empty DataFrame input |
| 55 | + - Tests don't verify output column values, only that columns exist |
| 56 | + - ... |
| 57 | + validations: |
| 58 | + required: true |
| 59 | + |
| 60 | + - type: textarea |
| 61 | + id: test-scenarios |
| 62 | + attributes: |
| 63 | + label: Specific Test Scenarios |
| 64 | + description: "List specific scenarios that should be tested." |
| 65 | + placeholder: | |
| 66 | + - Test with default parameters on BTC/EUR 4h data |
| 67 | + - Test with custom parameters (e.g., period=50) |
| 68 | + - Test empty DataFrame raises appropriate error |
| 69 | + - Test single-row DataFrame |
| 70 | + - Test with NaN values in input |
| 71 | + - Test polars DataFrame input returns polars DataFrame |
| 72 | + - Test output column names are correct |
| 73 | + - Test signal values are only -1, 0, or 1 |
| 74 | + validations: |
| 75 | + required: false |
| 76 | + |
| 77 | + - type: checkboxes |
| 78 | + id: deliverables |
| 79 | + attributes: |
| 80 | + label: Deliverables |
| 81 | + description: "What needs to be delivered?" |
| 82 | + options: |
| 83 | + - label: "New test file following project unittest pattern" |
| 84 | + - label: "Edge case tests (empty, NaN, single row)" |
| 85 | + - label: "Signal function tests" |
| 86 | + - label: "Stats function tests" |
| 87 | + - label: "Polars DataFrame compatibility tests" |
| 88 | + - label: "All tests passing locally" |
| 89 | + |
| 90 | + - type: textarea |
| 91 | + id: additional-context |
| 92 | + attributes: |
| 93 | + label: Additional Context |
| 94 | + description: "Anything else? Known bugs, related indicators, reference implementations." |
| 95 | + placeholder: "Optional additional context..." |
| 96 | + validations: |
| 97 | + required: false |
0 commit comments