This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5445 from trufflesuite/and-tests
Internal improvement: Move compile-solidity tests to a new separate package
- Loading branch information
Showing
74 changed files
with
595 additions
and
440 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
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,2 @@ | ||
dist | ||
node_modules |
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,5 @@ | ||
# `@truffle/compile-solidity-tests` | ||
|
||
:information_source: This package houses the tests for | ||
[@truffle/compile-solidity](https://www.npmjs.com/package/@truffle/compile-solidity-tests). This | ||
package is not published and lives only in this monorepo. |
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,53 @@ | ||
{ | ||
"name": "@truffle/compile-solidity-tests", | ||
"description": "Compiler helper and artifact manager for Solidity files", | ||
"license": "MIT", | ||
"author": "Tyler Feickert <[email protected]>", | ||
"homepage": "https://github.com/trufflesuite/truffle/tree/master/packages/compile-solidity-tests#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/trufflesuite/truffle.git", | ||
"directory": "packages/compile-solidity-tests" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/trufflesuite/truffle/issues" | ||
}, | ||
"private": true, | ||
"version": "0.1.0", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "ttsc", | ||
"prepare": "yarn build", | ||
"test": "./scripts/test.sh" | ||
}, | ||
"devDependencies": { | ||
"@truffle/artifactor": "^4.0.168", | ||
"@truffle/compile-solidity": "^6.0.42", | ||
"@truffle/config": "^1.3.37", | ||
"@truffle/resolver": "^9.0.15", | ||
"@types/node": "12.12.21", | ||
"@types/sinon": "^9.0.10", | ||
"babel-core": "^6.26.0", | ||
"babel-polyfill": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"chai": "^4.2.0", | ||
"debug": "^4.3.1", | ||
"fs-extra": "^9.1.0", | ||
"mocha": "9.2.2", | ||
"sinon": "^9.0.2", | ||
"tmp": "^0.2.1", | ||
"ts-node": "10.7.0", | ||
"typescript": "^4.7.4" | ||
}, | ||
"keywords": [ | ||
"compile", | ||
"ethereum", | ||
"solidity", | ||
"truffle" | ||
], | ||
"babel": { | ||
"presets": [ | ||
"env" | ||
] | ||
} | ||
} |
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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
|
||
yarn prepare | ||
|
||
if [ "$CI" = true ]; then | ||
mocha -r ts-node/register "./test/**/*.ts" --timeout 70000 $@ | ||
else | ||
rm -rf ./node_modules/.cache/truffle | ||
mocha -r ts-node/register "./test/**/*.ts" --invert --grep native --timeout 70000 $@ | ||
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
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.