Skip to content

Commit e2ce530

Browse files
committed
experimental
Signed-off-by: Frederic BIDON <[email protected]>
1 parent 7bda92f commit e2ce530

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

spec_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
// Enable long running tests by using cmd line arg,
3535
// Usage: go test ... -args [-enable-long|-enable-go-swagger]
3636
//
37-
// -enable-long: enable spec_test.go:TestIssue18 and messages_test.go:Test_Quality*
37+
// -enable-long: enable messages_test.go:Test_Quality*
3838
// -enable-go-swagger: enable non-regression tests against go-swagger fixtures (validation status) in swagger_test.go:Test_GoSwagger (running about 110 specs...)
3939
//
4040
// If none enabled, these tests are skipped
@@ -213,11 +213,6 @@ func TestSpec_Issue6(t *testing.T) {
213213

214214
// check if invalid patterns are indeed invalidated
215215
func TestSpec_Issue18(t *testing.T) {
216-
if !enableLongTests {
217-
skipNotify(t)
218-
t.SkipNow()
219-
}
220-
221216
files, _ := filepath.Glob(filepath.Join("fixtures", "bugs", "18", "*.json"))
222217
for _, path := range files {
223218
t.Logf("Tested spec=%s", path)

swagger_test.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ func skipNotifyGoSwagger(t *testing.T) {
4242
//
4343
// TODO: move this list to a YAML fixture config file
4444
func Test_GoSwaggerTestCases(t *testing.T) {
45-
if !enableGoSwaggerTests {
46-
skipNotifyGoSwagger(t)
47-
t.SkipNow()
48-
}
45+
/*
46+
if !enableGoSwaggerTests {
47+
skipNotifyGoSwagger(t)
48+
t.SkipNow()
49+
}
50+
*/
4951
// A list of test cases which fail on "swagger validate" at spec load time
5052
expectedLoadFailures := map[string]bool{
5153
"fixtures/go-swagger/bugs/342/fixture-342.yaml": false,

0 commit comments

Comments
 (0)