Open wearethefoos opened 7 years ago
Example from the Runner:
docker-compose run ruby -c ''' class Foo def self.bar 1 end end ''' -t rspec -f ''' describe Foo do describe ".bar" do it { expect(Foo.bar).to eq 1 } end end ''' --format=json
Produces:
{ "stdout": "<DESCRIBE::>Foo\n<DESCRIBE::>.bar\n<IT::>example at /tmp/ruby116917-1-17m65uw.walneo2yb9/solution.rb:11\n<PASSED::>Test Passed\n<COMPLETEDIN::>\n<COMPLETEDIN::>\n", "stderr": "", "exitCode": 0, "wallTime": 916, "stderrEscaped": true }
Check out the Runner Schema here https://github.com/Codaisseur/code-runner/blob/master/src/services/runner/runner-model.js
Mongoid Docs Mongoid example app
Example from the Runner:
Produces: