Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion mocha doesn't run tests with dev2.1
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
James Burke  
View profile  
 More options Oct 1 2012, 5:07 pm
From: James Burke <jrbu...@gmail.com>
Date: Mon, 1 Oct 2012 14:07:46 -0700
Local: Mon, Oct 1 2012 5:07 pm
Subject: Re: [requirejs] mocha doesn't run tests with dev2.1
My guess is that now requirejs([], function (){}) calls always call
the callback asynchronously. Is there a "wait" state you can put mocha
in before doing the requirejs([]) call, and then resume it once the
callback is called?

James

On Mon, Oct 1, 2012 at 2:51 AM, Erwin Poeze <erwin.po...@gmail.com> wrote:
> Hi,

> I tried to use dev2.1 because it seems it has a bug is solved that I
> encountered too. When I run existing test cases with mocha using the dev2.1
> r.js, mocha seems to skip all the test (0 tests completed). When a rebase
> r.js to master and create the r.js again, the mocha tests run ok.

> The most simple testcase I could create is (not testing anything, just
> echoing to console):

> var requirejs = require('../r.js');
> //var requirejs = require('requirejs');

> requirejs.config({
>   baseUrl: __dirname+'/..',
>   nodeRequire: require
> });

> requirejs([
>   'lib/schemas/Layout'
> ],
> function(
>   LayoutSchema
> ) {
>   describe('Test', function() {
>     describe('should show', function() {
>       it('something', function(done) {
>         console.log('layout')
>         done();
>       });
>     });
>   });
> });

> Does anyone have similar experiences?

> Thanks.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.