No output at all when using --requireJsSetup #297

Closed
Burgov opened this Issue Mar 11, 2014 · 7 comments

Comments

Projects
None yet
2 participants

Burgov commented Mar 11, 2014

When I run the command jasmine-node --requireJsSetup ./spec/initialize/initialize.js ./spec/*Spec.js for the project https://github.com/SamsonIT/RRM, I get absolutely no output at all (and the process exits with status code 0). When I remove the --requireJsSetup part, it runs fine, but all the tests fail because of missing variables/classes.

Is this some kind of bug or am I doing something wrong?

Contributor

tebriel commented Mar 11, 2014

what happens when you run it with --captureExceptions?

Burgov commented Mar 11, 2014

@tebriel thanks, that clarified things a bit, but now I ended up even more confused... Basically I want to include a bunch of files before running the tests, which is what I try to do in the initialize.js script, however the way I do it now appears to be completely wrong... Can you tell me how I should do this? (Without using RequireJS, that is)

Contributor

tebriel commented Mar 11, 2014

Try naming those files with helper in the name, like aHelper.js. Not at a
computer right now, but that should work. There's an example helper in the
spec folder of the repo, so mirror that and see if that helps, then let me
know how that goes.

On Tuesday, March 11, 2014, Bart van den Burg notifications@github.com
wrote:

@tebriel https://github.com/tebriel thanks, that clarified things a
bit, but now I ended up even more confused... Basically I want to include a
bunch of files before running the tests, which is what I try to do in the
initialize.js script, however the way I do it now appears to be completely
wrong... Can you tell me how I should do this? (Without using RequireJS,
that is)

Reply to this email directly or view it on GitHubhttps://github.com/mhevery/jasmine-node/issues/297#issuecomment-37315029
.

Burgov commented Mar 11, 2014

@tebriel I must be missing something really obvious here, but I really can't understand how to tell jasmine to include the source code in the src directory and the spec/fixtures directory before running any tests

Contributor

tebriel commented Mar 11, 2014

@Burgov Are you using require('./path/to/source.js') in your spec?

Burgov commented Mar 14, 2014

@tebriel Thanks for your help. After some fooling around I started to realise that I was probably using the wrong tool for my purpose. I finally decided to find other solutions, which resulted in Burgov/RRM@c61ec28.

Burgov closed this Mar 14, 2014

Contributor

tebriel commented Mar 14, 2014

That works too, all the best!

On Friday, March 14, 2014, Bart van den Burg notifications@github.com
wrote:

@tebriel https://github.com/tebriel Thanks for your help. After some
fooling around I started to realise that I was probably using the wrong
tool for my purpose. I finally decided to find other solutions, which
resulted in Burgov/RRM@c61ec28Burgov/RRM@c61ec28
.

Reply to this email directly or view it on GitHubhttps://github.com/mhevery/jasmine-node/issues/297#issuecomment-37636162
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment