mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Merge branch 'master' into release/0.9
This commit is contained in:
commit
bfd298c0f2
1 changed files with 14 additions and 5 deletions
19
README.md
19
README.md
|
@ -2,9 +2,9 @@ Spectator
|
|||
=========
|
||||
|
||||
Spectator is a fully-featured spec-based test framework for Crystal.
|
||||
It provides more functionality from [RSpec](http://rspec.info/)
|
||||
than the built-in Crystal [Spec](https://crystal-lang.org/api/latest/Spec.html) utility.
|
||||
Additionally, Spectator provides extra features to make testing easier and more fluent.
|
||||
It mimics features from [RSpec](http://rspec.info/).
|
||||
Developers coming from Ruby and RSpec will feel right at home.
|
||||
Spectator provides additional functionality to make testing easier and more fluent.
|
||||
|
||||
**Goal:**
|
||||
|
||||
|
@ -34,8 +34,8 @@ If it doesn't exist already, create a `spec/spec_helper.cr` file.
|
|||
In it, place the following:
|
||||
|
||||
```crystal
|
||||
require "spectator"
|
||||
require "../src/*"
|
||||
require "spectator"
|
||||
```
|
||||
|
||||
This will include Spectator and the source code for your shard.
|
||||
|
@ -309,6 +309,15 @@ Items not marked as completed may have partial implementations.
|
|||
- [X] `change[.by|.from[.to]|.to|.by_at_least|.by_at_most]`
|
||||
- [X] `have_attributes`
|
||||
- [ ] Compound - `and`, `or`
|
||||
- [ ] Mocks and Doubles
|
||||
- [ ] Mocks (Stub real types) - `mock TYPE { }`
|
||||
- [ ] Doubles (Stand-ins for real types) - `double NAME { }`
|
||||
- [ ] Method stubs - `allow().to receive()`, `allow().to receive().and_return()`
|
||||
- [ ] Spies - `expect().to receive()`
|
||||
- [ ] Message expectations - `expect().to receive().at_least()`
|
||||
- [ ] Argument expectations - `expect().to receive().with()`
|
||||
- [ ] Message ordering - `expect().to receive().ordered`
|
||||
- [ ] Null doubles
|
||||
- [ ] Runner
|
||||
- [X] Fail fast
|
||||
- [ ] Test filtering - by name, context, and tags
|
||||
|
@ -342,7 +351,7 @@ Contributing
|
|||
|
||||
Please make sure to run `crystal tool format` before submitting.
|
||||
The CI build checks for properly formatted code.
|
||||
[Ameba](https://github.com/veelenga/ameba) is run to check for code style.
|
||||
[Ameba](https://crystal-ameba.github.io/) is run to check for code style.
|
||||
|
||||
Tests must be written for any new functionality.
|
||||
Macros that create types are not as easy to test,
|
||||
|
|
Loading…
Reference in a new issue