Files
vikunja/pkg/caldavtests/bugs_test.go

52 lines
1.9 KiB
Go

// Vikunja is a to-do list application to facilitate your life.
// Copyright 2018-present Vikunja and contributors. All rights reserved.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
package caldavtests
import (
"testing"
)
// TestBugs contains tests that reproduce specific bugs reported by users.
// Each test references the GitHub issue it reproduces.
// These tests are expected to FAIL until the bug is fixed.
//
// To add a new bug reproduction test:
// 1. Create a new t.Run with the issue number in the name
// 2. Reproduce the exact CalDAV request sequence from the bug report
// 3. Assert what the correct behavior SHOULD be (not what it currently does)
// 4. The test will fail until the bug is fixed — this is expected and good
func TestBugs(t *testing.T) {
// Template for adding bug reproductions:
//
// t.Run("GitHub_Issue_NNNN_short_description", func(t *testing.T) {
// e := setupTestEnv(t)
//
// // Reproduce the steps from the issue...
// vtodo := NewVTodo("issue-NNNN", "...").Build()
// rec := caldavPUT(t, e, "/dav/projects/36/issue-NNNN.ics", vtodo)
//
// // Assert the expected (correct) behavior
// assert.Equal(t, 201, rec.Code)
// })
t.Run("placeholder_no_bugs_yet", func(t *testing.T) {
// Remove this placeholder once real bug tests are added
t.Skip("No bug reproductions added yet")
})
}