Skip to content

Commit

Permalink
Move integration test with external dependencies to test/end-to-end (#…
Browse files Browse the repository at this point in the history
…180)

* Skip flaky relay test

* Add info

* Don't run end-to-end tests on the CI
  • Loading branch information
HDegroote committed Apr 25, 2024
1 parent a9cef54 commit ad11e77
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
"test": "standard && node test/all.js",
"test:generate": "brittle -r test/all.js test/*.js",
"lint": "standard",
"integration": "brittle test/integration/*.js"
"integration": "brittle test/integration/*.js",
"end-to-end": "brittle test/end-to-end/*.js"
},
"author": "Mathias Buus (@mafintosh)",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions test/end-to-end/info.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The tests in this directory are not self-contained.
Since they depend on outside services (like the prod DHT) they can be flaky.
This means that a single failure of an end-to-end test is no cause for alarm.
However, repeated failures when the service depended upon is available is a red flag.

Because of their flakiness, they should not be added to automated runs (like the CI)
File renamed without changes.

0 comments on commit ad11e77

Please sign in to comment.