Skip to content

Commit b59f4f8

Browse files
author
Caleb Ditchfield
authored
Merge pull request #193 from fei-protocol/feat/docsUpdate-small
Add option to run all tests.
2 parents 0f6f816 + 6e99b14 commit b59f4f8

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ Smart contract code for Fei Protocol and the FEI stablecoin
55
## Dependencies
66
Note that this has only been tested on Linux; you may encounter issues running on other operating systems.
77

8-
- Node v12 or v16 (you can manage Node versions easily with [NVM]([https://github.com/nvm-sh/nvm]))
8+
- Node v12 or v16 (you can manage Node versions easily with [NVM](https://github.com/nvm-sh/nvm))
99

1010
## Installation
1111
- run `npm install` in the root directory
1212

1313
## Usage
1414
- run `npm run test` to run unit tests
1515
- run `npm run test:e2e` to run end-to-end/integration tests
16+
- run `npm run test:all` to run all tests
1617
- run `npm run lint` to lint ts files; run `npm lint:all` to lint ts AND js files
1718
- run `npm run lint:fix` to fix linting errors, if fixable automatically
1819
- run `npm run prettier-format` to run prettier and automatically format all ts files

hardhat.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const privateKey = process.env.ETH_PRIVATE_KEY;
1818
const runE2ETests = process.env.RUN_E2E_TESTS;
1919
const enableMainnetForking = process.env.ENABLE_MAINNET_FORKING;
2020
const mainnetAlchemyApiKey = process.env.MAINNET_ALCHEMY_API_KEY;
21+
const runAllTests = process.env.RUN_ALL_TESTS;
2122

2223
if (!(process.env.NODE_OPTIONS && process.env.NODE_OPTIONS.includes('max-old-space-size'))) {
2324
throw new Error(
@@ -97,7 +98,7 @@ export default {
9798
},
9899

99100
paths: {
100-
tests: runE2ETests ? './test/integration/' : './test/unit/'
101+
tests: runAllTests ? './test/' : runE2ETests ? './test/integration/' : './test/unit/'
101102
},
102103

103104
mocha: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"test": "npx hardhat test",
1616
"test:e2e": "RUN_E2E_TESTS=true npx hardhat test",
1717
"test:gas": "REPORT_GAS=true npx hardhat test",
18+
"test:all": "RUN_ALL_TESTS=true npx hardhat test",
1819
"lint": "eslint --config ./.eslintrc --ignore-path ./.eslintignore --ext .ts,.tsx .",
1920
"lint-all": "eslint --config ./.eslintrc --ignore-path ./.eslintignore --ext .js,.jsx,.ts,.tsx .",
2021
"lint:fix": "npm run lint --fix",

0 commit comments

Comments
 (0)