You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Mark Koudritsky <ka...@gmail.com> on 2013/11/28 18:00:14 UTC

Review Request 15914: Fix e2e tests on Windows

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/15914/
-----------------------------------------------------------

Review request for cordova.


Repository: cordova-cli


Description
-------

There were two problems.
 1. Couldn't delete the tmp project dir on Windows because it was the CWD
    of the node process and Windows can't delete "busy" dirs.
 2. There was an interaction between tests in spec and those in e2e.
    Jasmine ran the e2e tests first, the CWD stayed in temp dir, but some
    tests in spec assume that CWD is the cordova source root dir.

Both problems solved by process.chdir(<source root>) after each e2e test.

But probably the spec tests should also be fixed, because counting on specific CWD is fragile.


Diffs
-----

  e2e/create.spec.js 5900d7a 
  e2e/platform.spec.js 879a909 
  e2e/plugin.spec.js 0425f90 

Diff: https://reviews.apache.org/r/15914/diff/


Testing
-------


Thanks,

Mark Koudritsky


Re: Review Request 15914: Fix e2e tests on Windows

Posted by Michal Mocny <mm...@chromium.org>.
Jesse, would you be able to confirm the fix?


On Thu, Nov 28, 2013 at 12:00 PM, Mark Koudritsky <ka...@gmail.com> wrote:

>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/15914/
> -----------------------------------------------------------
>
> Review request for cordova.
>
>
> Repository: cordova-cli
>
>
> Description
> -------
>
> There were two problems.
>  1. Couldn't delete the tmp project dir on Windows because it was the CWD
>     of the node process and Windows can't delete "busy" dirs.
>  2. There was an interaction between tests in spec and those in e2e.
>     Jasmine ran the e2e tests first, the CWD stayed in temp dir, but some
>     tests in spec assume that CWD is the cordova source root dir.
>
> Both problems solved by process.chdir(<source root>) after each e2e test.
>
> But probably the spec tests should also be fixed, because counting on
> specific CWD is fragile.
>
>
> Diffs
> -----
>
>   e2e/create.spec.js 5900d7a
>   e2e/platform.spec.js 879a909
>   e2e/plugin.spec.js 0425f90
>
> Diff: https://reviews.apache.org/r/15914/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Mark Koudritsky
>
>