Comments (12)
@mrt123 where you able to resolve this?
from decaf.
@noamtcohen issue is still there for me
from decaf.
This is how I proceeded:
After install decaf in the directory where fitnesse.jar is (not globally)
on http://localhost:8080/root?edit
I made this change:
!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {node node_modules/decaf/lib/decaf %p}
so now I'm getting a different error that the class I'm try to test was not found: Cannot find greeter
from decaf.
sorry i am late to the party ... i've been in NY on holidays ... i'll check this as soon as possible
from decaf.
If I change the example and rename from greeter.coffee:
class @Greeter
hello: (who) -> "Hello #{who}!"
to greetet.js:
function Greeter(){
}
I'm green on the imports but I get these errors:
TypeError: Cannot read property 'Greeter' of undefined
TypeError: Cannot read property 'sut' of undefined
from decaf.
@mrt123 I put together a demo, please download the zip and see the readme. let me know if this works for you.
https://github.com/noamtcohen/FitnesseWithCoffee
from decaf.
@noamtcohen thanks , this worked
from decaf.
@mrt123, regarding you question about protractor. protractor is build on top WebDriverJs so you could just use WebDriverJs from within your node test suite. FitNesee runs test files, protractor runs test files. What you could do is invoke protractor from your node test file (via fork or spawn) and then parse the output of protractor and send it back to FitNesse. I'm working on a project to support this kind of functionality (but not specific to protractor): SlimJS. Please post your questions on the SlimJS repo, Cheers.
from decaf.
Hi there ... i finally got some time to test this ... this was working for me on a mac ....
!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {decaf %p}
!path fixtures
|import|
|greeter|
|script|Greeter|
|check|hello|Decaf|Hello Decaf!|
from decaf.
@msuarz thanks you checking this for us.
I've started a new project SlimJS. It an async nodejs slim server. This is better for my use case since all of my javascript code is written in javascript, I don't see a reason to learn coffeescript and I need it to asynchronous.
Thanks again for helping out.
from decaf.
no worries the hate on coffeescript is strong out there :) ... i've learned to ignore it ... a couple of things ...
. decaf should work the same for js than for coffee ... 'cos coffee is js
. good luck with the async implementation ... i've though bout it a few times ... fitnesse/slim is not going to help u ... u end up with async steps but they don't nest ... so all u get is a callback per step ala cucumber.js
. and good luck with ppl testing at this level of abstraction in javascript :) ... that's ultimately the biggest letdown for me
from decaf.
I don't hate coffee I just don't understand its need. (as for TS)
It's ok that the callback is per step and it makes sense, I need the async functionality since most useful code in nodejs is async. What is ppl testing?
from decaf.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decaf.