Fork me on GitHub

At Centriq we use Appium to drive integration tests and the way we automate them is to run scripts in CI - just for one scheduled “nightly build” run - that build an APK and IPA and the test-runner package, and then upload all three to AWS Device Farm and run the tests on a pool of ~10 devices. Very much a golden-path smoke test today, but for $500/month (one unmetered “slot” for iOS and one for Android) I feel it’s good value for money to see test runs once a day.


are there any "recent" open source ClojureScript + Expo apps? need something I can use to test my build stuff with


@chris_johnson interesting. AWS Device Farm seems cool, but my reaction is, wow, 500 USD/month


well, yeah, it’s not super cheap but you get a lot for your money


arbitrary code/tests run on real devices, with MP4 video of the test run and screenshots/data output optionally stored alongside the test runs


and if you are careful about how much you use, of course it can be cheaper than that


500 USD/month gets you one “slot” for each platform that you can use 24/7 to run tests


you can also pay by the hour - for us, we hit the breakeven point where 500/month was cheaper than our metered usage, but we are running some double-digit number of integration tests against both platforms and on ~ten devices each platform every day


you could certainly get reasonable confidence in your system at a much lower volume of testing, but we’ve had lots of reports from the field that seem consistent but that we can’t repro locally (for example, lots of weirdness around app loading at all on Galaxy S5s), so for us it’s worth it to see those things exercised every nightly build just in case we finally see the problem and can figure it out


(aside: Android is such a tire fire to support 😐 )

👍 4

@chris_johnson very valuable information, thanks for sharing!


has anyone used the js fetch api to load local json files? trying to do it but no luck so far


I wouldn't have thought that would be supported. What's your use case @dilin?


I think you can just js/require JSON files, which will then get added to your bundle


i'd like to load the local json files for dev build but use an external api for prod


@dilin have you checked out something like this?


or I guess pretty much any http server running on localhost will do (I recommend


oh wow that's really cool. that will work for me


probably not the best time to post this but if anyone is interested. I made a thing for react-native in shadow-cljs.

❤️ 20

@thheller I am going to take a very close look at that example project. We are making extensive use of shadow-cljs for our web-facing SPAs and I find the promise of just cutting Metro out of the picture entirely to be very intriguing


I will certainly report anything I find re: final packaging for distribution, runtime issues, etc. once I have had a chance to play around. Our RN project is about the ugliest path of which I am currently aware - we started off using expo but then needed some native capabilities that it doesn’t cover, so now we are running in “detached” mode. This means that we still use lots of ExpoKit libs but actually have to build/launch the native shim layer “by hand” in Xcode or Android Studio. I suspect that this means we are dependent on parts of the exp tooling that aren’t covered by your POC


but if we aren’t


if we could just start using shadow-cljs to build and serve our project? mmmm, delicious

😁 4