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

Use browser-launcher2. #6

Closed
wants to merge 1 commit into from

Conversation

timoxley
Copy link

@timoxley timoxley commented Oct 3, 2014

I've kinda just changed this with a quick fix to make it work for me, I'll probably just bundle it into my app if you don't accept this, so whatever. browser-launcher2 resolves the aforementioned browsers not closing on OS X issue.

browser-launcher2 (in yellow) also seems to have far more activity.

image

image

@juliangruber
Copy link
Owner

if this makes it work for you and still works for me, I'm all 👍

But, this doesn't pass the tests locally (either), so i'm investigating

@juliangruber
Copy link
Owner

this is weird:

not ok test/spawn.js .................................... 2/3
    Command: "/usr/local/bin/node spawn.js"
    TAP version 13
    not ok 1 should be equal
      ---
        file:   /Users/julian/dev/juliangruber/browser-run/test/spawn.js
        line:   8
        column: 7
        stack:
          - getCaller (/Users/julian/dev/juliangruber/browser-run/node_modules/tap/lib/tap-assert.js:418:17)
          - assert (/Users/julian/dev/juliangruber/browser-run/node_modules/tap/lib/tap-assert.js:21:16)
          - Function.equal (/Users/julian/dev/juliangruber/browser-run/node_modules/tap/lib/tap-assert.js:162:10)
          - Test._testAssert [as equal] (/Users/julian/dev/juliangruber/browser-run/node_modules/tap/lib/tap-test.js:87:16)
          - Socket.<anonymous> (/Users/julian/dev/juliangruber/browser-run/test/spawn.js:8:7)
          - Socket.emit (events.js:95:17)
          - Socket.<anonymous> (_stream_readable.js:764:14)
          - Socket.emit (events.js:92:17)
          - emitReadable_ (_stream_readable.js:426:10)
          - emitReadable (_stream_readable.js:422:5)
        found:  console: foo
        wanted: foo
        diff:   |
          FOUND:  console: foo\n
          WANTED: foo\n
                  ^ (at position = 0)

@timoxley
Copy link
Author

hm, weird.

@juliangruber
Copy link
Owner

maybe different phantomjs versions?

@timoxley
Copy link
Author

I actually couldn't get phantom to build at the time of this PR, due to yosemite changes. I'll look into this again soon

@zeke
Copy link
Contributor

zeke commented May 29, 2016

Hi folks! 👋

I just tried using browser-run on an existing smokestack/tap suite and ran into this issue where the (chrome) browser window doesn't close.

@juliangruber wanna kick off the travis build again and see if it passes? I tried locally but couldn't get tests to pass, even on the master branch: #102

@juliangruber
Copy link
Owner

@zeke the browser-run part seems to work for me:

 ∴  browser-date-formatter ((HEAD detached at c8558b6)) : ./node_modules/.bin/browserify test/index.js | browser-run
TAP version 13
# formatter
ok 1 uses a relative date string by default
not ok 2 supports custom strftime formats
  ---
    operator: equal
    expected: |-
      '2016-04-07'
    actual: |-
      '2016-04-08'
    at: Test.assert [as _assert] (http://localhost:52352/bundle.js:16353:17)
  ...
 ∴  browser-date-formatter ((HEAD detached at c8558b6)) :

@juliangruber
Copy link
Owner

@zeke when I change the data assert, it finishes as it should:

 ∴  browser-date-formatter ((HEAD detached at c8558b6)) : ./node_modules/.bin/browserify test/index.js | browser-run
TAP version 13
# formatter
ok 1 uses a relative date string by default
ok 2 supports custom strftime formats
 ∴  browser-date-formatter ((HEAD detached at c8558b6)) :

@fregante
Copy link
Contributor

Closing this as slightly stale

@fregante fregante closed this Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants