Skip to content
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

How to log steps ala Cucumber #53

Open
hisapy opened this issue Nov 7, 2018 · 2 comments
Open

How to log steps ala Cucumber #53

hisapy opened this issue Nov 7, 2018 · 2 comments

Comments

@hisapy
Copy link

hisapy commented Nov 7, 2018

THIS IS NOT AN ISSUE.

Hey devs ... If you want to log your feature step by step similar to how Cucumber logs in Ruby, then you can use FlexLogger and configure it in your test config file.

# file config/test.exs
config :logger,
  backends: [{FlexLogger, :test_logger}, {FlexLogger, :default_logger}]

config :logger, :test_logger,
  logger: :console,
  default_level: :off,
 # the tests that use Cabbage start with FeatureTest. i.e.: FeatureTest.CreatePost
  level_config: [module: FeatureTest, level: :info],
  format: " $levelpad$message\n"

config :logger, :default_logger,
  logger: :console,
  default_level: :warn,
  format: "\n$time $metadata[$level] $levelpad$message\n"

This info might fit quite well into the README and then close this ticket ...

@jalcine
Copy link

jalcine commented Jan 14, 2019

This could be placed into the Wiki versus opening a whole issue.

@revati
Copy link
Collaborator

revati commented Jan 14, 2019

Yes, completely agree, I'm currently are in progress to push this repository to 1.0.
Updating documentation is one of the steps. This also will be integrated ;)
This also could change, due to code changes in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants