Skip to content

Commit

Permalink
Integration tests were moved to separate build step
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-tihon committed Jul 10, 2016
1 parent 7bcd079 commit 2184d9e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
3 changes: 2 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#### 0.5.3 - June 28, 2016
#### 0.5.3 - July 10, 2016
- Supported Newtonsoft.Json v9.0.1
- FIXED: props and fields name collision during quotes compilation [#38](https://github.com/fsprojects/SwaggerProvider/pull/38)

#### 0.5.2 - June 23, 2016
- FIXED: 201 status codes should be used as a return type for operations [#34](https://github.com/fsprojects/SwaggerProvider/issues/34)
Expand Down
16 changes: 13 additions & 3 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,20 @@ Target "BuildTests" (fun _ ->
// --------------------------------------------------------------------------------------
// Run the unit tests using test runner

Target "ExecuteTests" (fun _ ->
Target "ExecuteUnitTests" (fun _ ->
!! testAssemblies
|> NUnit3 (fun p ->
{ p with
//Domain = NUnit3DomainModel.NoDomainModel
Where = "cat != Integration"
TimeOut = TimeSpan.FromMinutes 20.
Labels = LabelsLevel.All})
)

Target "ExecuteIntegrationTests" (fun _ ->
!! testAssemblies
|> NUnit3 (fun p ->
{ p with
Where = "cat == Integration"
TimeOut = TimeSpan.FromMinutes 20.
Labels = LabelsLevel.All})
)
Expand Down Expand Up @@ -354,7 +363,8 @@ Target "All" DoNothing
==> "CopyBinaries"
==> "StartServer"
==> "BuildTests"
==> "ExecuteTests"
==> "ExecuteUnitTests"
=?> ("ExecuteIntegrationTests", not <| (hasBuildParam "skipTests"))
==> "StopServer"
==> "RunTests"
//=?> ("GenerateReferenceDocs",isLocalBuild)
Expand Down
2 changes: 1 addition & 1 deletion tests/SwaggerProvider.ProviderTests/APIs.Guru.FSC.Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let toTestCase (url:string) =
let JsonSchemasSource = APIsGuru.JsonSchemas |> Array.map toTestCase


[<Test; TestCaseSource("JsonSchemasSource")>]
[<Test; TestCaseSource("JsonSchemasSource"); Category("Integration")>]
let ``Compile TP`` url =
let tempFile = Path.GetTempFileName()
let fs = Path.ChangeExtension(tempFile, ".fs")
Expand Down
4 changes: 2 additions & 2 deletions tests/SwaggerProvider.Tests/Schema.Parser.Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ let JsonSchemasSource =
Array.concat [schemasFromTPTests; APIsGuru.JsonSchemas]
|> Array.map toTestCase

[<Test; TestCaseSource("JsonSchemasSource")>]
[<Test; TestCaseSource("JsonSchemasSource"); Category("Integration")>]
let ``Parse Json Schema`` (url:string) =
parserTestBody (JsonValue.Parse >> JsonNodeAdapter) url

let YamlSchemasSource = APIsGuru.YamlSchemas |> Array.map toTestCase
[<Test; TestCaseSource("YamlSchemasSource")>]
[<Test; TestCaseSource("YamlSchemasSource"); Category("Integration")>]
let ``Parse Yaml Schema`` url =
parserTestBody (SwaggerProvider.YamlParser.Parse >> YamlNodeAdapter) url

0 comments on commit 2184d9e

Please sign in to comment.