Skip to content

Commit

Permalink
experimental
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
  • Loading branch information
fredbi committed Dec 13, 2023
1 parent 7bda92f commit e2ce530
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
7 changes: 1 addition & 6 deletions spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
// Enable long running tests by using cmd line arg,
// Usage: go test ... -args [-enable-long|-enable-go-swagger]
//
// -enable-long: enable spec_test.go:TestIssue18 and messages_test.go:Test_Quality*
// -enable-long: enable messages_test.go:Test_Quality*
// -enable-go-swagger: enable non-regression tests against go-swagger fixtures (validation status) in swagger_test.go:Test_GoSwagger (running about 110 specs...)
//
// If none enabled, these tests are skipped
Expand Down Expand Up @@ -213,11 +213,6 @@ func TestSpec_Issue6(t *testing.T) {

// check if invalid patterns are indeed invalidated
func TestSpec_Issue18(t *testing.T) {
if !enableLongTests {
skipNotify(t)
t.SkipNow()
}

files, _ := filepath.Glob(filepath.Join("fixtures", "bugs", "18", "*.json"))
for _, path := range files {
t.Logf("Tested spec=%s", path)
Expand Down
10 changes: 6 additions & 4 deletions swagger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@ func skipNotifyGoSwagger(t *testing.T) {
//
// TODO: move this list to a YAML fixture config file
func Test_GoSwaggerTestCases(t *testing.T) {
if !enableGoSwaggerTests {
skipNotifyGoSwagger(t)
t.SkipNow()
}
/*
if !enableGoSwaggerTests {
skipNotifyGoSwagger(t)
t.SkipNow()
}
*/
// A list of test cases which fail on "swagger validate" at spec load time
expectedLoadFailures := map[string]bool{
"fixtures/go-swagger/bugs/342/fixture-342.yaml": false,
Expand Down

0 comments on commit e2ce530

Please sign in to comment.