Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit b5848ea

Browse files
authored
Merge pull request #332 from ipfs/readme/testing-info
add more info about testing and where tests live
2 parents 9d17e1e + f1210af commit b5848ea

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
- [In the Browser through `<script>` tag](#in-the-browser-through-script-tag)
2121
- [CORS](#cors)
2222
- [Usage](#usage)
23+
- [API](#api)
2324
- [Callbacks and promises](#callbacks-and-promises)
2425
- [Contribute](#contribute)
2526
- [License](#license)
@@ -99,7 +100,17 @@ $ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"http://exam
99100

100101
## Usage
101102

102-
See [API.md](API.md) and [`tests/api`](test/api) for details on available methods.
103+
### API
104+
105+
> `WIP`
106+
107+
`js-ipfs-api` follows the spec defined by [`interface-ipfs-core`](https://github.com/ipfs/interface-ipfs-core), which governs the interface to expect from IPFS implementations. This interface is an current active endeavour, expect it to be complete in the following weeks (August 2016). You can use it today to consult the methods available.
108+
109+
### Extra API methods
110+
111+
Adding to the methods defined by [`interface-ipfs-core`](https://github.com/ipfs/interface-ipfs-core), `js-ipfs-api` exposes a set of extra utility methods.
112+
113+
A complete documentation for these methods is coming with: https://github.com/ipfs/js-ipfs-api/pull/305
103114

104115
### Callbacks and promises
105116

@@ -118,13 +129,19 @@ ipfs.id()
118129
This relies on a global `Promise` object. If you are in an environment where that is not
119130
yet available you need to bring your own polyfill.
120131

132+
## Development
133+
134+
### Testing
135+
136+
We run tests by executing `npm test` in a terminal window, this will run both Node.js and Browser tests, both in Chrome and PhantomJS. To ensure that the module conforms with [`interface-ipfs-core`](https://github.com/ipfs/interface-ipfs-core) spec, we run the batch o tests provided by the interface module, which can be found [here](https://github.com/ipfs/interface-ipfs-core/tree/master/src)
137+
121138
## Contribute
122139

123140
The js-ipfs API is a work in progress. As such, there's a few things you can do right now to help out:
124141

125142
* **[Check out the existing issues](https://github.com/ipfs/js-ipfs-api/issues)**!
126143
* **Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
127-
* **Add tests**. There can never be enough tests.
144+
* **Add tests**. There can never be enough tests. Note that interface tests exist inside [`interface-ipfs-core`](https://github.com/ipfs/interface-ipfs-core/tree/master/src)
128145
* **Contribute to the [FAQ repository](https://github.com/ipfs/faq/issues)** with any questions you have about IPFS or any of the relevant technology. A good example would be asking, 'What is a merkledag tree?'. If you don't know a term, odds are, someone else doesn't either. Eventually, we should have a good understanding of where we need to improve communications and teaching together to make IPFS and IPN better.
129146

130147
**Want to hack on IPFS?**

0 commit comments

Comments
 (0)