-
Notifications
You must be signed in to change notification settings - Fork 712
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
Gherkin / Cucumber Test System #663
Comments
Have a look at https://github.com/amolenaar/fitnesse-jbehave-test-system. It's using JBehave, the original BDD tool for Java. Still have to make a release. IDE support would be nice, but it's a big effort to pull it off. I'd love to have it. The FitNesse code base should be in a good enough shape to be used by an IDE plugin. |
Thanks for sharing it, sure, I will take a look at it. |
Hi Senthil, In Eclipse you can use the build in browser to work with FitNesse pages and can control the edit / test / view cycle fully with keyboard shortcuts and without the mouse. To test suites you can define an ant task and call this from within Eclipse like a Junit task. |
I use Fitnesse for about 10+ years and used it in many different ways including what you suggested.
Currently I suggest for my people to go for UI based acceptance but not for business rule tests with Fitnesse because of this. And that is the reason why I always wanted for something developer friendly within in IDE and without having to have an additional server part. Lastly to answer your question about what kind of IDE integration I want is something like Cucumber-Jvm but in Fitnesse way |
Gherkin itself is the syntax/parser mechanism for cucumber. It doesn't use It seems to me that you don't really think Gherkin is the need, but the If we do implement something, it still needs to support the various That said, it isn't a bad idea. Personally when I was doing a lot of On Wed, Mar 11, 2015 at 8:40 PM, Senthil Maruthaiappan <
|
I agree that my original question is kind two different questions. ok, Fitnesse works by test system like Fit, Slim so similarly one can think of Gherkin as a type of Test System too which provides FitNesse users a choice and subside that Cucumber fever people. Secondly, using standalone editors like notepad, vi are good but trust me, most of the developers all the time with IDEs some way and also you think of version control support too with FitNesse. Right now one need to manually check in those context.txt and property.xml files. It really sucks with that SVN, there is no way to ignore unwanted files. On TFS you must check out those files before editing in Fitnesse. So if you go with IDE then you get it free or provision to extend it like test runners, version control, editors and possibly syntax highlighting on wiki tables. Well you mentioning about folder structure, yes it is a challenge for IDEs. Personally I think that we should get out of that concept some way especially with that twin files (txt, xml) and folder name acting as a suite name / test name. I do not know anyone hit the problem of long directory names and could not delete in windows because of too lengthy! However this was not the topic but happened to record here. |
I agree with you that the roundtrip for developers is quite long (edit wiki text, update fixture code, compile and run from a web browser). It's hard for a developer who's used to running all tools and tests from his IDE. I checked out a few plugins for IntelliJ (since that's what I'm using), but none of them got past the level of syntax highlighting. :( Something that FitNesse could play a part in (related to Gherkin), is that it can provide an organised overview of the scenario's. Kinda like https://cucumber.pro does it. Because apart from the test execution FitNesse can also make such information available through a browser and it can manage the test history. At least, that was one of the benefits I saw when writing the JBehave plugin for FitNesse. |
Cucumber is just another flavour of JUnit stuff and sugar coated with Gherkin. To me, it is meant more for developers. Seriously I do not know how many organization Business Owners sit and write specifications in Gherkin. Back to the topic, yes in FitNesse one can understand what is failing and what is passing at the end but not that Junit style assert crap mudding the water and to say, assert wherever you think of given/when/then. As you said, I agree that FitNesse provides you an organized view and even more powerful test inheritance. Actually the wow feature of FitNesse is scenario table to me which Cucumber sucks really and I wouldn't spend time&money writing in Gherkin for that, just forget it. If the people do not know the right tools for the job and how to use it wisely then its going to cost hell a lot money for a company. It's pity to hear about cucumber.pro and I just laugh at this. Also look at that SpecFlow guys with SpecFlow Plus, all traps. Well, FitNesse is far more than enough to me except reduce the foot print and need to find a way for seamless red/green/refactor development jelled with IDE. |
I've been building a plugin for IntelliJ lately: https://github.com/amolenaar/idea-fitnesse. It has syntax highlighting and referencing between fixtures, tables and scenario tables so far. Next up is execution. |
Glad to see coming up on IntelliJ. If you break up into task, possibly I could sign up to contribute whenever I get time if you like. Possibly you could come up with a release plan and interested people can contribute to it. |
I have a list of tasks/features on the wiki page of the project. Like I said, I'm currently working on getting the test case execution working. If you can compile it (grade build) and give it a try, that would be much appreciated. |
I was able to compile it with 2 warnings on DecisionTableSuite.scala:90 and /ScriptTableSuite.scala:107. |
I would like to know is there any plan for Gherkin based test system. I feel that Fitnesse is kind of side lined with Cucumber. Fitnesse is powerful and I know Cucumber table is originated from Fit, so shouldn't we be up to that?
Also another question: do you guys have any plans for providing Fitnesse runner work within Development IDE run or seamlessly work between IDE and Browser based run?.
The text was updated successfully, but these errors were encountered: