-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whole-tool tests #148
Comments
Where should it be located? I can start up something. |
maybe On Thu, Oct 9, 2014 at 7:02 PM, Jeromy Johnson notifications@github.com
|
|
Maybe this could use an existing shell test framework like sharness: https://github.com/mlafeldt/sharness Sharness was extracted from the Git project, so I am familiar with how it works and I can start working on this. And it is easy to use and to understand anyway. |
@chriscool That would be pretty sweet, ill take a look at sharness a little more, but if it came out the the git development, then im sure it will be good enough for us! |
That looks very good. shell tests probably make sense for shell calls :). And, looks like it's TAP output instead of a custom fmt (yay). |
Great, I will work on it this week end! |
Thanks again for sharness @chriscool -- it has really saved us so many times. |
update for the routing refactor
* feat: make it possible to define optional durations * test: empty/default optional durations does not crash if user restores default value and sets it to empty string "" * refactor: use null in JSON * refactor(duration): use JSON null as the default Rationale: ipfs/go-ipfs-config#148 (comment) * refactor: Duration → OptionalDuration This makes it possible to use OptionalDuration with `json:",omitempty"` so the null is not serialized to JSON, and get working WithDefault as well. Co-authored-by: Marcin Rataj <lidel@lidel.org>
* feat: make it possible to define optional durations * test: empty/default optional durations does not crash if user restores default value and sets it to empty string "" * refactor: use null in JSON * refactor(duration): use JSON null as the default Rationale: ipfs/go-ipfs-config#148 (comment) * refactor: Duration → OptionalDuration This makes it possible to use OptionalDuration with `json:",omitempty"` so the null is not serialized to JSON, and get working WithDefault as well. Co-authored-by: Marcin Rataj <lidel@lidel.org>
* feat: make it possible to define optional durations * test: empty/default optional durations does not crash if user restores default value and sets it to empty string "" * refactor: use null in JSON * refactor(duration): use JSON null as the default Rationale: ipfs/go-ipfs-config#148 (comment) * refactor: Duration → OptionalDuration This makes it possible to use OptionalDuration with `json:",omitempty"` so the null is not serialized to JSON, and get working WithDefault as well. Co-authored-by: Marcin Rataj <lidel@lidel.org>
* feat: make it possible to define optional durations * test: empty/default optional durations does not crash if user restores default value and sets it to empty string "" * refactor: use null in JSON * refactor(duration): use JSON null as the default Rationale: ipfs/go-ipfs-config#148 (comment) * refactor: Duration → OptionalDuration This makes it possible to use OptionalDuration with `json:",omitempty"` so the null is not serialized to JSON, and get working WithDefault as well. Co-authored-by: Marcin Rataj <lidel@lidel.org>
We really need a test suite that exercises the ipfs tool from the cli. This way we can verify proper functioning of things.
The text was updated successfully, but these errors were encountered: