bitovi / bitovi/funcunit

Funcunit does not work properly under Phantomjs

Open
#93 2 comments 0 reactions 0 assignees View on GitHub
p2
Dominant language
JavaScript
Stars
571
Forks
370
PR merge metrics
No merged PRs in 30d

Description

Hello, is funcunit still active? This is a great tool, but I have a problem when using it under phantomjs.

Here is the sample code in `demo.test.html` file

``` html


Using QUnit Tests




```

The demo.test.js file is very simple.

``` javascript
module('Some Demo tests', {
beforeEach: function() {

// F.open('/');
console.log('First Demo BeforeEach Called');
return true;

},
afterEach: function() {
return;
}
});

test('A simple demo with FuncUnit', function() {
F('body').visible('it shows the body');
});
```

It works fine in Chrome 39 but does not work in Phantomjs 1.9.8.

I'm using the grunt-contrib-qunit to start Phantomjs to test this. It always timed out.
If I add `F.open('/')` in the beforeEach function it works. Please help me find out what causes this problem? Is there any workaround?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with demo.test.html and specs/demo.test.js, then run the same test through grunt-contrib-qunit with PhantomJS 1.9.8 and compare it with Chrome 39. Focus on why the test times out unless F.open('/') runs in beforeEach. Done means identifying the cause and documenting a verified workaround or fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.