Fragments of documentation that will be reused later on.
(Most of the time, as developer of flor, I'm writing specs, running them with FLOR_DEBUG=dbg
and hammering the code until the specs are green. The following lines are about setting FLOR_DEBUG
for flor development).
This is a targeted run of a spec file:
FLOR_DEBUG=msg,err bundle exec rspec spec/punit/cancel_spec.rb
msg
displays the flor messages in a summary, colored formaterr
displays errors with details, when and if they happensrc
displays the source before it gets parsed and launchedtree
displays the syntax tree as parsed from the source, right before launchrun
shows info about each run that just endedsto
displays debug information about the storage, it's mostly SQL statements
There are two shortcuts for the flags above:
FLOR_DEBUG=dbg bundle exec rspec spec/punit/cancel_spec.rb
# is equivalent to
FLOR_DEBUG=msg,err,src,tree,run bundle exec rspec spec/punit/cancel_spec.rb
and
FLOR_DEBUG=all bundle exec rspec spec/punit/cancel_spec.rb
# is equivalent to
FLOR_DEBUG=msg,err,src,tree,run,log,sto bundle exec rspec spec/punit/cancel_spec.rb
I tend to use FLOR_DEBUG=dbg
when developping flor.