Giter Club home page Giter Club logo

gherkingen's People

Contributors

dependabot[bot] avatar goreleaserbot avatar hedhyw avatar tv0ridobro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

markusbkk blkb12

gherkingen's Issues

Template object documentation

Now the application can return JSON representation of template object if flag -format is set to json, but it will be nicer if the object will be documented.

Replace spaces in test case name by underscores

Input:

Feature: Issue example
    Scenario: Just a hello world
        Examples:
        | <name>      |
        | hello world  |

Generates:

testCases := map[string]testCase{
    "hello world": {"hello world"},
}

Expected:

testCases := map[string]testCase{
    "hello_world": {"hello world"},
}

Default format

Consider default output format by an extension of the template.

Cannot build docker

 > [linux/386 builder 5/5] RUN make build OUT_PATH=/build/bin/gherkingen VERSION=v2.4.0:
#0 0.168 building v2.4.0
#0 0.171 go build \
#0 0.171 	-o /build/bin/gherkingen \
#0 0.171 	--ldflags "-s -w -X main.version=v2.4.0" \
#0 0.171 	cmd/gherkingen/main.go
#0 0.920 # runtime/cgo
#0 0.920 cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in $PATH

Set version on go install

go install github.com/hedhyw/gherkingen/v2/cmd/gherkingen@latest

gherkingen --version
github.com/hedhyw/gherkingen@unknown

Indent of main comment

Input:

Feature: Example
    Details:
    - example 1
    - example 2
    - example 3

Generates:

func TestExample(t *testing.T) {
        f := bdd.NewFeature(t, "Example")

        /*     Details:
        - example 1
        - example 2
        - example 3 */
}

Expected:

func TestExample(t *testing.T) {
        f := bdd.NewFeature(t, "Example")

        /*
        Details:
        - example 1
        - example 2
        - example 3
        */
}

Docker build

Build and push the docker image with a binary included.

JS support problem

This is a great library, I would like to use it in my projects.
But I think it has a bug, it doesnt really support JS. It should also be able to generate code in JS with Jest or Mocha, maybe both, depending on given parameters.
And publish it on npm, it's a lot easier to install libraries from there.
Please fix it ASAP, thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.