Skip to content

Commit 8ec5330

Browse files
docs: update readme instructions and build status (#107)
Update the usage and installation instructions and add badges for the build status Co-authored-by: Mitchell Olsthoorn <[email protected]>
1 parent c3a18d0 commit 8ec5330

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

README.md

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
> The aim of this tool is make it easier for Solidity contract developers to test their contracts in a more effective and efficient way.
44
55
[![](https://github.com/syntest-framework/syntest-solidity/actions/workflows/node.js.yml/badge.svg)](https://github.com/syntest-framework/syntest-solidity/actions/workflows/node.js.yml)
6+
[![publish](https://github.com/syntest-framework/syntest-solidity/actions/workflows/publish.yml/badge.svg)](https://github.com/syntest-framework/syntest-framework/actions/workflows/publish.yml)
7+
![npm (scoped)](https://img.shields.io/npm/v/@syntest/solidity?style=flat)
8+
![node-current (scoped)](https://img.shields.io/node/v/@syntest/solidity)
69

710
### What is SynTest Solidity?
811

@@ -48,37 +51,24 @@ $ cd syntest-solidity; npm run build
4851

4952
#### Building the docker image
5053

51-
```
54+
```bash
5255
docker build -t syntest-solidity:0.1.0 . --no-cache --build-arg REGISTRY_TOKEN={your_access_token}
5356
```
5457

55-
```
58+
```bash
5659
docker run -it syntest-solidity:0.1.0 MetaCoin.sol "$(cat ./contracts/MetaCoin.sol)"
5760
```
5861

5962
## Local development
6063

61-
To be able to make quick changes to the syntest-framework and then test it in the syntest-solidity project change the following line:
64+
To be able to make quick changes to the syntest-framework and then test it in the syntest-solidity project use `npm link`:
6265

63-
```
64-
"dependencies": {
65-
...
66-
"@syntest-framework/syntest-framework": "^0.0.4",
67-
...
68-
}
69-
```
70-
71-
to:
72-
73-
```
74-
"dependencies": {
75-
...
76-
"@syntest-framework/syntest-framework": "file:../syntest-framework",
77-
...
78-
}
66+
```bash
67+
cd <PATH_TO_SYNTEST_FRAMEWORK>; npm link
68+
cd <PATH_TO_SYNTEST_SOLIDITY>; npm link @syntest/framework
7969
```
8070

81-
> This assumes that both projects are in the same super-directory
71+
This creates a symbolic link to the local syntest-framework instance in the node modules folder of syntest-solidity.
8272

8373
## Usage
8474

@@ -87,10 +77,12 @@ To start you need to be in the root of the project folder containing the contrac
8777
After installing these dependencies together with the tool, you can run the following example command.
8878

8979
```bash
90-
$ syntest-solidity --include="{PATH TO YOUR CONTRACTS FOLDER}/**/*.sol" --search-time=10 --total_time=10
80+
$ syntest-solidity --include="<PATH_TO_YOUR_CONTRACTS_FOLDER>/contracts/**/*.sol" --search-time=10 --total_time=10
9181
```
9282

93-
This will test all solidity contracts that are contained in the contracts folder that you should specify. It will run for 10 seconds.
83+
This will test all solidity contracts that are contained in the contracts folder. It will run for 10 seconds.
84+
85+
> Note that currently the contracts folder has to be named "contracts" for the tool to work. This will be solved in a later version.
9486
9587
Syntest-Solidity is highly configurable and supports a bunch of options and arguments, all of them can be found by providing the `--help` option or `-h` for short. Another way of configuring the tool is by putting a .syntest.js file in the root of your project. The file should have the following structure:
9688

0 commit comments

Comments
 (0)