membase / cucumberl Goto Github PK
View Code? Open in Web Editor NEWpure erlang implementation of Cucumber parser & driver
License: MIT License
pure erlang implementation of Cucumber parser & driver
License: MIT License
Lets say you have a and clause for a then statement. Something like
Then ...
and build the project normally
that you do not implement. Cumberl will reprot the following
a step definition snippet...
step(['and',build,the,project,normally], _) ->
undefined.
When it should actually report
a step definition snippet...
step([then,'and',build,the,project,normally], _) ->
undefined.
Hi,
I've just cloned your repo I found several problems while trying to use it. I describe them below:
3.There are some bugs in the cucumberl_parser:process_line function that break the execution of the features.
If you wish I can send a patch with the fix to those bugs in cucumberl_parser.
The use of multiple step modules for a single feature (file) seems a little haphazard. It's intent appears to be sharing of code (i.e., step function definitions) between modules, but I think there are other, cleaner ways to do this.
The use of helper modules, for example, would alleviate the need for this, and is supported on the cli (see https://github.com/hyperthunk/cucumberl/blob/master/src/cucumberl_cli.erl#L45) and could easily be moved into the main cucumber module.
Also, not processing multiple step modules would simplify error handling and negate the requirement to always implement a stub function clause in your modules, i.e.,
%% no more of these!!!
step(_, _) -> undefined.
Please let me know if you would consider this change, as I'd be happy to contribute.
Hope someone sees this, I really can't get any info on this anywhere else and I'm kind of a beginner to this and I can't google out of my problems no more, so.
I'm experiencing some issues when I attempt to run sample files on the console, here's what I get:
jim@ubuntu:~/Dokument/Cucumberl/cucumberl-master$ sudo make
./rebar compile escriptize
make: execvp: ./rebar: Permission denied
make: *** [build] Error 127
jim@ubuntu:~/Dokument/cucumberl-master/examples/failures$ sudo make
../../rebar clean compile eunit
==> failures (clean)
==> failures (compile)
Compiled src/fail.erl
ERROR: git describe --always --tags failed with error: 127
make: *** [test] Error 1
I'm not entirely sure if I'm doing this right, if someone can help me troubleshoot the issue it would help me a lot to get on with my project tasks!
Thanks for any help! //c
Could you maybe provide a git tag on the tip of the repo named 'v0.0.5' or something like that? (And, of course, add new tags when new version bumps occur?)
I'm getting this error while trying to install Joxa.
==> cucumberl (compile)
ERROR: OTP release 18 does not match required regex R15B.*
Also, it seems this very useful library has been abandoned. I'd be willing to pick it up as a maintainer if you're interested.
This is a great, except....
I modified the example sample.feature to be...
Then the result should be 123 on the screen
and it still passed...
erl -pa ebin -noshell -s sample main -s init stop
Feature: Addition :1
In order to avoid silly mistakes :2
As a math idiot :3
I want to be told the sum of two numbers :4
:5
Scenario: Add two numbers :6
Given I have entered 50 into the calculator :7 ok
And I have entered 70 into the calculator :8 ok
When I press add :9 ok
Then the result should be 123 on the screen :10 ok
:11
1 scenarios
4 steps
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.