question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Help getting started

See original GitHub issue

I’m trying to use spectron with mocha. In my beforeEach, I have: this.app = new Application({path: "bin/package/pluginContainer.html"}); return this.appstart(); This times out after 2000ms. What am I doing wrong? Am I passing the wrong path to Application? I didn’t see a description anywhere of what that path is supposed to point to.

Thanks, -Josh

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16

github_iconTop GitHub Comments

2reactions
kevinsawickicommented, Feb 3, 2016

@JoshuaBStevens so you’ll need to specify the path to electron as the path and specify the path to your app as an argument.

something like the following but with the paths adjusted for your setup:

// Path to Electron
var electronPath = path.join(__dirname, '..', 'node_modules', '.bin', 'electron')
if (process.platform === 'win32') electronPath += '.cmd'

// Path to your application
var appPath = path.join(__dirname, 'bin', 'package')

var app = new Application({
  path: electronPath,
  args: [appPath]
})
app.start()

Hope this helps.

0reactions
AmanChhabra-A746623commented, Jul 10, 2019

HI @kevinsawicki @JoshuaBStevens I have my electron application in another directory and spectron application in some other directory. How can I set path to run electron from spectron application?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Get Started (On Anything) - Medium
How to Get Started (On Anything) · Break the Project down into Steps · Don't Focus on the Last Hurdles · Remove Distractions...
Read more >
Help:Getting started - Wikipedia
If you somehow do get stuck, there are volunteers available to answer your questions; see asking for help for more information.
Read more >
Getting Started with Zoom - Zoom Support
Zoom's products and features are here to help you stay in touch and collaborate with others. Choose a product below to get started....
Read more >
Get Started – WordPress.com Support
Detailed Guide: Getting Started on WordPress.com. Want a longform guide that will help you create content, add pages, set a homepage, and create...
Read more >
Getting started with Support - Zendesk help
Getting started with Support · Introduction: Getting started with Zendesk Support · Lesson 1: From support requests to tickets · Lesson 2: Organizing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found