Skip to content
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

where is Dalekfile? #3

Open
finderL opened this issue Sep 24, 2013 · 6 comments
Open

where is Dalekfile? #3

finderL opened this issue Sep 24, 2013 · 6 comments
Assignees
Labels

Comments

@finderL
Copy link

finderL commented Sep 24, 2013

I downloaded the codes from website of git and installed the browser plugins with the following command, The document tell me that use the browser plugin by adding a config option to the my Dalekfile, but its link warms 404...where is Dalekfile ? It's location path is? I need to creat one by myself ? so what's the filename?

@asciidisco
Copy link
Member

Sorry for the lack of documentation.
The Dalekfile should be called Dalekfile.(json|yml) & should be in the root of your project (where you run your dalek command from).

A sample can be found in the guineapig project (https://github.com/dalekjs/guineapig).
The configuration options for Firefox can be found here: http://dalekjs.com/docs/firefox.html

Leaving this issue open to remind myself that I should write some docs.

@finderL
Copy link
Author

finderL commented Sep 25, 2013

Thank goodness! After installed the browser plugins && added Dalekfile.json, to run dalek test/*.js && warm "TypeError: Cannot call method 'emit' of undefined,"then I found that file require eventemitter2.js, but eventemitter2 has the method of emit, you know where is error ? can you help me ? Thank you very much !
the details is following:
image

@asciidisco
Copy link
Member

Could you please post a stripped down version of your test & the contents of your Dalekfile?
That would definitely help debugging the issue. Thank you.

@ghost ghost assigned asciidisco Oct 7, 2013
@larsauswsw
Copy link

I had the same problem when the filename was Dalekfile.js. After I renamed it to Dalekfile.json it worked.

@blandine
Copy link

blandine commented Jun 4, 2014

Hi,
I have the same problem of Emitter: when there's no Dalekfile.json, tests are ok. But when I add the file it fails.
My test is still the first one :

module.exports = {

'Page title is correct': function(test) {

    test
        .open('http://google.com')
        .assert.title().is('Google', 'It has title')
        .done();

}

}

And my Dalekfile.json is :

{ "browser": ["chrome"] }

Do you have any idea ?

Anyway, thanks for building dalek, great tool :)

@asciidisco
Copy link
Member

{ "browser": ["chrome"] } is correct & interestingly it does work with other browsers, like phantomjs, needs investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants