This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
Diorama-based app spec tests #1475
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
e5b5010
Merge branch 'reset-conductor-api-after-adding-bridge' into diorama-a…
maackle d12d95a
Update app spec tests for diorama
maackle afa6430
fmt
maackle c1cb5ba
Merge remote-tracking branch 'origin/develop' into diorama-app-spec-t…
maackle f97e0e5
Build rust conductor instead of node conductor
maackle a9a2a5a
Debugging git hash discrepancy
maackle 00a17dc
Experiment with sleep to remove flakiness
maackle 954ca74
tweaks for flaky app spec tests
thedavidmeister e166c40
fmt
thedavidmeister 49a7fa8
fix app spec regression tests
thedavidmeister db2ba57
remove vb.gui from vagrant
thedavidmeister a5ee9ab
dont commit vagrant
thedavidmeister e9f0657
Merge remote-tracking branch 'origin/develop' into diorama-app-spec-t…
maackle c3b776a
set text=auto
thedavidmeister 3870ecd
Merge remote-tracking branch 'origin/develop' into diorama-app-spec-t…
maackle 30963d4
Merge branch 'diorama-app-spec-tests' of github.com:holochain/holocha…
maackle fcacacb
Use different diorama storage dir
maackle 777c903
Bump diorama, longer timeout
maackle 3946412
Bump diorama ver
maackle 3b44e47
Bump diorama
maackle e486755
Revert "Bump diorama"
maackle 6dee369
add a ton of swap to vagrant to shoehorn app spec tests in
thedavidmeister 758285e
wip on git attributes for lf
thedavidmeister 6c7092e
dos2unix for holonix
thedavidmeister 57fc10c
dos2unix sweep
thedavidmeister d9bef2f
Merge branch 'diorama-app-spec-tests' of https://github.com/holochain…
thedavidmeister 8218fe0
Merge branch 'diorama-app-spec-tests' of github.com:holochain/holocha…
maackle 7a88d01
bump diorama
maackle 4ee7f15
merged develop into diorama-app-spec-tests
zippy cae68b9
Bump diorama
maackle 6e579d2
bump diorama
maackle 54066f2
Merge branch 'develop' into diorama-app-spec-tests
lucksus File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
* text=auto | ||
* text eol=lf | ||
* text eol=lf | ||
|
||
[core] | ||
autocrlf=input |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
const path = require('path') | ||
const tape = require('tape') | ||
|
||
const { Diorama, tapeExecutor, backwardCompatibilityMiddleware } = require('@holochain/diorama') | ||
|
||
process.on('unhandledRejection', error => { | ||
// Will print "unhandledRejection err is not defined" | ||
console.error('got unhandledRejection:', error); | ||
}); | ||
|
||
const dnaPath = path.join(__dirname, "../dist/app_spec.dna.json") | ||
const dna = Diorama.dna(dnaPath, 'app-spec') | ||
|
||
const diorama = new Diorama({ | ||
instances: { | ||
alice: dna, | ||
bob: dna, | ||
carol: dna, | ||
}, | ||
bridges: [ | ||
Diorama.bridge('test-bridge', 'alice', 'bob') | ||
], | ||
debugLog: false, | ||
executor: tapeExecutor(require('tape')), | ||
middleware: backwardCompatibilityMiddleware, | ||
}) | ||
|
||
require('./regressions')(diorama.registerScenario) | ||
require('./test')(diorama.registerScenario) | ||
|
||
diorama.run() |
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,12 +1,14 @@ | ||
{ | ||
"devDependencies": {}, | ||
"dependencies": { | ||
"@holochain/diorama": "^0.1.1", | ||
"faucet": "0.0.1", | ||
"json3": "*", | ||
"sleep": "^5.2.3", | ||
"tape": "^4.9.1" | ||
}, | ||
"scripts": { | ||
"test": "./run.sh" | ||
"test": "./run.sh", | ||
"test-ci": "./run-ci.sh" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p diorama-storage | ||
|
||
STORAGE="`pwd`/diorama-storage" | ||
rm -fr $STORAGE | ||
mkdir $STORAGE | ||
if [ -z $1]; | ||
then DIORAMA_STORAGE=$STORAGE node index.js | tee test.out~ | faucet || ( cat test.out~; false ); | ||
else DIORAMA_STORAGE=$STORAGE node $1; | ||
fi; |
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,4 +1,5 @@ | ||
#!/usr/bin/env bash | ||
if [ -z $1]; | ||
then tape test.js regressions.js | tee test.out~ | faucet || ( cat test.out~; false ); | ||
else tape $1; | ||
fi; | ||
then node index.js | tee test.out~ | faucet || ( cat test.out~; false ); | ||
else node $1; | ||
fi; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the sources of whichiness @thedavidmeister