News for hackers. Stuff that matters.
Re:Exponent – Build native apps in JS that work across both ... by aantix on Monday September 26, 2016 @03:17PM (#12584753)
What's the preferred way to test an Exponent based app?
Re:Exponent – Build native apps in JS that work across both ... by nikki93 on Monday September 26, 2016 @04:32PM (#12585301)
Also if you meant automated testing, here's an Exponent app that runs jasmine to test Exponent SDK API end-to-end: https://github.com/exponentjs/test-suite This is useful for testing network requests, API calls, etc. in your app JS.
Re:Exponent – Build native apps in JS that work across both ... by ccheever on Monday September 26, 2016 @03:26PM (#12584803)
Exponent apps have URLs, so if you have the URL for an Exponent app, you can just download the Exponent developer app from the iOS App Store / Play Store and then open the URL.

Ex. Try opening https://getexponent.com/@exponent/floatyplane from your phone.

If you have the source code for the app, just open the project directory in XDE (our desktop software) and it will give you a development URL that you can open in the Simulator or on your phone.

In general, testing Exponent apps is way easier than testing apps other ways. We put a lot of time into making it simple.

Re:Exponent – Build native apps in JS that work across both ... by brentvatne on Monday September 26, 2016 @03:53PM (#12585006)
For unit tests, we prefer Jest. We don't have a preference for acceptance testing, you could use Appium or similar tools for that.