spec-kemal alternatives and similar shards
Based on the "Framework Components" category.
Alternatively, view spec-kemal alternatives based on common mentions on social networks and blogs.
Do you think we are missing an alternative of spec-kemal or a related project?
Kemal helpers to Crystal's
spec for easy testing.
Add it to your
name: your-kemal-app version: 0.1.0 dependencies: spec-kemal: github: kemalcr/spec-kemal branch: master kemal: github: kemalcr/kemal branch: master
Just require it before your files in your
require "spec-kemal" require "../src/your-kemal-app"
Your Kemal application
# src/your-kemal-app.cr require "kemal" get "/" do "Hello World!" end Kemal.run
Now you can easily test your
Kemal application in your
KEMAL_ENV=test crystal spec
# spec/your-kemal-app-spec.cr describe "Your::Kemal::App" do # You can use get,post,put,patch,delete to call the corresponding route. it "renders /" do get "/" response.body.should eq "Hello World!" end end
- Fork it ( https://github.com/kemalcr/spec-kemal/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- sdogruyol Sdogruyol - creator, maintainer