Comments (7)
How would you imagine testing the app? Like what kind of testing would you like specifically?
from electron-boilerplate.
I was thinking of basic unit tests running inside Electron. Possibly something that supports test-on-save, but that could probably be an afterthought. I think it should be as simple as possible, and, as said, support testing both main-process modules and in-browser code.
from electron-boilerplate.
Yeah, I got that, but what would it test?
from electron-boilerplate.
Sorry, not sure I understand what you're asking (and sorry if I'm giving the wrong answer). What I mean is that, when developing an app within electron, you can't just unit-test your modules with e.g. karma, since electron architecture provides feature not generally available in a browser (namely, node bindings).
Assume that I write a twitter client for mac, I'll probably write a module to wrap the twitter APIs, one for auth, one for caching, etc..
I'd like to be able to unit-test each of this module in isolation and in the context execution of Electron.
The idea is: how would you set-up a testing environment for this? I suppose you should write a very simple (separate) Electron app which sets up jasmine/mocha/whatever and then run this app to test your code. Now, setting up this environment shouldn't be very hard, but it's the sort of thing that become very handy if provided with the boilerplate (or in the yo generator).
Hope this as clarified my request a bit, sorry again if I'm talking nonsense.
from electron-boilerplate.
That makes it totally clear. Thanks :)
I don't have an answer for you right now, but this is something I would need too, so I'll try to come up with something.
from electron-boilerplate.
Maybe we could add https://github.com/jprichardson/electron-mocha?
from electron-boilerplate.
Closing as Spectron is not well-maintained: electron-userland/spectron#359 Will do this if that ever changes.
from electron-boilerplate.
Related Issues (18)
- Replace `atom-shell` with `electron-prebuilt`
- Markdown needs update HOT 2
- Extra comma in readme HOT 1
- Error: Cannot find module 'electron-debug' HOT 2
- Download file link is broken HOT 2
- Native Integration - How deep? HOT 1
- Got stuck in Pushing Tags HOT 1
- outdated deps
- Unhandled Promise Rejection - TypeError : Cannot read property "appId" of undefined HOT 12
- whitescreen on idle? HOT 1
- Add CSP
- Add dark mode support
- Menu Items to open function from other script/file HOT 2
- How log out form account HOT 2
- Lint fails on initial commit due to import/extensions
- Windows and Linux support HOT 2
- Error: build fails when using npm @3.3.5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-boilerplate.