Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

CoffeeScript step definition snippets #65

Closed
jbpros opened this Issue May 15, 2012 · 4 comments

Comments

Projects
None yet
3 participants
Owner

jbpros commented May 15, 2012

For now, stepdef snippets are suggested in vanilla JavaScript. Should we add support for CS there? If yes, how would you tell Cucumber.js to output CS instead of JS?

+1

i would do it via the command line: via cucumber.js -coffee or cucumber.js --snippets=coffee

Owner

jbpros commented Jun 6, 2012

I think --coffee is good (shorter and easier to remember).

Contributor

johngeorgewright commented Sep 11, 2012

Ah. Well... I wasn't expecting that to happen until a pull request was accepted. Sorry. Seems I have a bit to learn to about the old github. I'll submit a proper pull request once I'm finished.

Owner

jbpros commented Sep 11, 2012

No worries, it's more transparent that way. Me likes it.

Also, I often eventually squash pull requests as single clean commits.

jbpros added a commit that referenced this issue Nov 27, 2013

Add colors to CLI (close #104)
Implemented colors and filenames, line number display in progress,
pretty and summary formatters along with support for environment
variable CUCUMBER_COLORS.

Squashed commit of the following:

commit 44c6757
Merge: 0411c18 53c3501
Author: Julien Biezemans <jb@jbpros.com>
Date:   Wed Nov 27 15:49:39 2013 +0100

    Merge branch 'master' into colors

    Conflicts:
    	lib/cucumber/cli.js
    	lib/cucumber/cli/argument_parser.js
    	lib/cucumber/cli/configuration.js
    	lib/cucumber/listener/progress_formatter.js
    	lib/cucumber/listener/summary_formatter.js
    	lib/cucumber/support_code.js
    	lib/cucumber/support_code/step_definition_snippet_builder_syntax.js
    	package.json
    	spec/cucumber/cli/configuration_spec.js
    	spec/cucumber/support_code/step_definition_snippet_builder_syntax_spec.js

commit 0411c18
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 23:28:48 2012 +0100

    Fix indentation

commit 0a62aea
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 23:14:39 2012 +0100

    Rename "coffee" internal formatter option to "coffeeScriptSnippets"

commit df69e13
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 23:12:19 2012 +0100

    Organize methods

commit fc662ed
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 23:11:39 2012 +0100

    Add missing specs to CLI configuration

commit 5ff71bb
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 22:17:01 2012 +0100

    Add argument parser specs for --coffee option

commit 38f5600
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 22:07:47 2012 +0100

    Remove useless newline

commit 9035433
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 22:06:51 2012 +0100

    Rename "feature tags" to "inherited tags"

commit 817c34c
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 21:53:06 2012 +0100

    Remove useless stub

commit 8a0ecab
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Thu Dec 13 00:18:00 2012 +0530

    removed debug code

commit c46cffb
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Wed Dec 12 23:03:45 2012 +0530

    Implemented stricter color formatting to prevent bugs with newline character. Added tags to pretty formatter output.

commit 260b595
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Wed Dec 12 04:10:21 2012 +0530

    Fixed bug with pretty formatter output in scenario without a background

commit 9403fa5
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Tue Dec 11 21:19:05 2012 +0530

    Fixed wrongly indented output for datatables when using colors.

commit e603982
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Tue Dec 11 14:52:35 2012 +0530

    Added proper filename and line indentation for background steps

commit 335b2da
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Tue Dec 11 12:12:45 2012 +0530

    Added coffeescript snippet support to the pretty formatter

commit ea2c3aa
Merge: f2c63c2 c09d4c6
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Mon Dec 10 15:04:32 2012 +0530

    Merge branch 'johngeorgewright'

commit f2c63c2
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Mon Dec 10 07:03:23 2012 +0530

    Updated step definitions for colored output.

commit e61e995
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Mon Dec 10 06:28:09 2012 +0530

    Implemented colors and filenames, line number display in progress, pretty and summary formatters along with support for environment variable CUCUMBER_COLORS.

commit c09d4c6
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Thu Sep 13 22:29:04 2012 +1000

    Added a spec file for the syntax classes.

commit bdbf7a6
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Thu Sep 13 22:24:57 2012 +1000

    Updated StepDefinitionSnippetBuilder spec file.

commit db0b8c3
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Wed Sep 12 08:47:30 2012 +1000

    Updated tests for summary formatter.

commit aead79d
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Wed Sep 12 08:46:55 2012 +1000

    The syntax construction now is created by a separate method. This makes things easier to test.

commit 705aca4
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Tue Sep 11 20:31:38 2012 +1000

    #65 Getting Jamsine to pass.

commit b8b4780
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Tue Sep 11 20:11:33 2012 +1000

    #65 Forgot about replacing the definition matching group parameters.

commit 878e8b8
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Tue Sep 11 17:02:31 2012 +1000

    #65 The --coffee option will now switch the step definition builder between syntaxs.

commit d6ca30d
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Tue Sep 11 17:01:26 2012 +1000

    #65 The step defintions snippets builder now uses a syntax behaviour rather then static properties. The CoffeeScript flavour has also been added here.

ldegen added a commit to ldegen/cucumber-js that referenced this issue Jan 13, 2014

Add colors to CLI (close #104)
Implemented colors and filenames, line number display in progress,
pretty and summary formatters along with support for environment
variable CUCUMBER_COLORS.

Squashed commit of the following:

commit 44c6757
Merge: 0411c18 53c3501
Author: Julien Biezemans <jb@jbpros.com>
Date:   Wed Nov 27 15:49:39 2013 +0100

    Merge branch 'master' into colors

    Conflicts:
    	lib/cucumber/cli.js
    	lib/cucumber/cli/argument_parser.js
    	lib/cucumber/cli/configuration.js
    	lib/cucumber/listener/progress_formatter.js
    	lib/cucumber/listener/summary_formatter.js
    	lib/cucumber/support_code.js
    	lib/cucumber/support_code/step_definition_snippet_builder_syntax.js
    	package.json
    	spec/cucumber/cli/configuration_spec.js
    	spec/cucumber/support_code/step_definition_snippet_builder_syntax_spec.js

commit 0411c18
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 23:28:48 2012 +0100

    Fix indentation

commit 0a62aea
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 23:14:39 2012 +0100

    Rename "coffee" internal formatter option to "coffeeScriptSnippets"

commit df69e13
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 23:12:19 2012 +0100

    Organize methods

commit fc662ed
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 23:11:39 2012 +0100

    Add missing specs to CLI configuration

commit 5ff71bb
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 22:17:01 2012 +0100

    Add argument parser specs for --coffee option

commit 38f5600
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 22:07:47 2012 +0100

    Remove useless newline

commit 9035433
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 22:06:51 2012 +0100

    Rename "feature tags" to "inherited tags"

commit 817c34c
Author: Julien Biezemans <jb@jbpros.com>
Date:   Tue Dec 25 21:53:06 2012 +0100

    Remove useless stub

commit 8a0ecab
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Thu Dec 13 00:18:00 2012 +0530

    removed debug code

commit c46cffb
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Wed Dec 12 23:03:45 2012 +0530

    Implemented stricter color formatting to prevent bugs with newline character. Added tags to pretty formatter output.

commit 260b595
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Wed Dec 12 04:10:21 2012 +0530

    Fixed bug with pretty formatter output in scenario without a background

commit 9403fa5
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Tue Dec 11 21:19:05 2012 +0530

    Fixed wrongly indented output for datatables when using colors.

commit e603982
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Tue Dec 11 14:52:35 2012 +0530

    Added proper filename and line indentation for background steps

commit 335b2da
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Tue Dec 11 12:12:45 2012 +0530

    Added coffeescript snippet support to the pretty formatter

commit ea2c3aa
Merge: f2c63c2 c09d4c6
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Mon Dec 10 15:04:32 2012 +0530

    Merge branch 'johngeorgewright'

commit f2c63c2
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Mon Dec 10 07:03:23 2012 +0530

    Updated step definitions for colored output.

commit e61e995
Author: Johny Jose <johny.aiesec@gmail.com>
Date:   Mon Dec 10 06:28:09 2012 +0530

    Implemented colors and filenames, line number display in progress, pretty and summary formatters along with support for environment variable CUCUMBER_COLORS.

commit c09d4c6
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Thu Sep 13 22:29:04 2012 +1000

    Added a spec file for the syntax classes.

commit bdbf7a6
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Thu Sep 13 22:24:57 2012 +1000

    Updated StepDefinitionSnippetBuilder spec file.

commit db0b8c3
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Wed Sep 12 08:47:30 2012 +1000

    Updated tests for summary formatter.

commit aead79d
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Wed Sep 12 08:46:55 2012 +1000

    The syntax construction now is created by a separate method. This makes things easier to test.

commit 705aca4
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Tue Sep 11 20:31:38 2012 +1000

    #65 Getting Jamsine to pass.

commit b8b4780
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Tue Sep 11 20:11:33 2012 +1000

    #65 Forgot about replacing the definition matching group parameters.

commit 878e8b8
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Tue Sep 11 17:02:31 2012 +1000

    #65 The --coffee option will now switch the step definition builder between syntaxs.

commit d6ca30d
Author: John Wright <johngeorge.wright@gmail.com>
Date:   Tue Sep 11 17:01:26 2012 +1000

    #65 The step defintions snippets builder now uses a syntax behaviour rather then static properties. The CoffeeScript flavour has also been added here.

@jbpros jbpros closed this Jul 3, 2015

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