-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
185 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
language: node_js | ||
node_js: | ||
- '4' | ||
- '5' | ||
- '6' | ||
- '7' | ||
- '8' | ||
- '9' | ||
- '10' | ||
os: | ||
- linux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# build version format | ||
version: "{build}" | ||
|
||
# fix lineendings in Windows | ||
init: | ||
- git config --global core.autocrlf input | ||
|
||
# Test against these versions of Node | ||
environment: | ||
matrix: | ||
- nodejs_version: "6" | ||
- nodejs_version: "7" | ||
- nodejs_version: "8" | ||
- nodejs_version: "9" | ||
- nodejs_version: "10" | ||
|
||
platform: | ||
- x64 | ||
|
||
matrix: | ||
fast_finish: true | ||
skip_tags: true | ||
skip_branch_with_pr: true | ||
|
||
# Setup Node environment | ||
install: | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- npm install | ||
|
||
# Run custom build script instead of MSBuild | ||
build_script: | ||
- powershell .\scripts\build.ps1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
# Mocha example | ||
|
||
The Mocha example is a really simple demonstration of the use of Pact in Mocha tests, as well as a demonstration of running parallel tests. | ||
|
||
Note that the two Dog API endpoints have separate tests, but are for the same consumer/provider pair. | ||
|
||
Each test is fully self-contained, yet the result of running both creates a union of the two test cases in the generated pact file. | ||
|
||
This is achieved by setting `pactfileWriteMode: 'merge'`, which instructs Pact to merge any documents with the same consumer and provider pairing at the end of all test runs. Note that you need to create a separate mock server on a different port for each test. | ||
The Mocha example is a really simple demonstration of the use of Pact in Mocha tests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.