Cannot execute tests in AppCenter, using calabash framework with React Native project - react-native-ios

I am trying to execute appcenter test prepare calabash --artifacts-dir "myArtifactsDir" --app-path "myAppPath" --project-dir "myProjectDir" command via Terminal, and I am getting the following error:
Cannot prepare Calabash artifacts. Returning exit code 127; | Preparing tests... /bin/sh: test-cloud: command not found.
Not sure what am I missing? Some help would be greatly appreciated!

It seems that I was missing xamarin-test-cloud agent withing my project.

Related

When trying to run a jest test, I receive the error "sh: jest: command not found"

Im working on a node command line application which requires jest testing. Ive installed it as a dependency in my package.json, and when I try to run the 'npm run test' command, it gives me a bunch of errors. Anyone know what's going on? Im very new to node and web dev in general, so any feedback would be much appreciated!

Twilio Video Startup

I am fairly new to React and am trying to run an example to get started with understanding how Twilio interfaces with React/Node. I am currently using the repo https://github.com/twilio/twilio-video.js, and am trying to run the test > framework > twilio-video-react, but when I npm install then npm start, the server starts, but throws the error:
Failed to compile
./src/App.js
Module not found: Can't resolve 'twilio-video'
I did `npm install twilio-video`, but still throwing error. What am I missing here? Can anyone else get this example started? I want a base example with Twilio Video working with React so I can learn from there, any other resources would help, thanks!
I tried these two examples as well, but they are outdated:
https://www.twilio.com/blog/2018/03/video-chat-react.html
https://www.twilio.com/blog/2016/03/building-a-react-powered-video-chat.html
Okay, got an example up and running with a little fudging.
I followed this example: https://www.twilio.com/blog/2018/03/video-chat-react.html
But there were a few old libraries that were causing errors.
Posted a working version on my Github linked here.

broadleaf - failed to execute goal

I am following these easy steps https://www.broadleafcommerce.com/docs/core/current/getting-started/running-locally
but I am stuck at step 2 already ´mvn spring-boot:run´ gives me the following error:
Failed to execute goal on project boot-community-demo-admin: Could not resolve dependencies for project com-mycompany-community:boot-community-demo-admin:jar1.0.0-SNAPSHOT.
feels like the pom.xml is not correct.
I believe it's looking for mycompany-community which doesn't exist http://nexus.broadleafcommerce.org/nexus/content/groups/community-snapshots/com/
thank you
You Can run using the eclipse it will run successfully with out giving any errors. here is the link to run using eclipse
Link: https://www.broadleafcommerce.com/docs/core/current/getting-started/ide-setup/eclipse-setup
It Will Work Fine While Running Using Eclipse. I Also checked in my System it is working fine with eclipseIDE.
It looks like you need to follow step 1c in the docs to mvn install from the root of the project. Did you do that part?

adding npm module to Tabris results in a failed build with cordova

Being rather new to mobile app development i'm looking at Apache Cordova paired with Tabris.
Tabris requires a particular installation procedure, this creates a ./node_modules sub-folder under the regular ./www folder of a typical cordova project. Build cordova here is not a problem.
After adding 'npm install pouchdb' to ./www/node_modules now the cordova build fails again and again. I don't see what else changed but the addition of pouchdb. Strangely while pouchdb is reported to be just 46KB after installation many more modules were added and it now weighs in at 55MB. I suspect the many extra modules pose an issue.
I suspect i may need to tweak gradle but i'm most clueless where to start.
please advise
--- below the output indicating build failure
.... many lines of output preced
:processDebugManifest
:processDebugResources FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/opt/android-sdk-update-manager/build-tools/24.0.2/aapt'' finished with non-zero exit value 1
<<< this is supposedly output from gradle >>>
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 13.708 secs
Error: Error code 1 for command: /usr/sources/mobile/.../platforms/android/gradlew with args: cdvBuildDebug,-b,/usr/sources/mobile/.../platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
... replace path for anonymisation
<<< is my own inserted line >>>
First off: are you using Tabris or Tabris.js? The former is a Java framework and is not compatible with Cordova. The latter is, but if you're trying to use Tabris.js as a slave to Cordova (i.e. using the Cordova build command) that's not going to work. Instead I suggest you convert your project structure Tabris.js's style and then run the build there. If you still encounter errors when after converting your structure and building with Tabris.js, post the full build log in the Tabris.js issue tracker.

Issue with Node-based Cordova Hook

I'm playing around with the Cordova hooks capabilities and I'm trying to test using a node application as a hook. In this article: http://devgirl.org/2013/11/12/three-hooks-your-cordovaphonegap-project-needs/ it references running node applications, so I know it's possible.
I've created a simple node application that I'm using to test the before prepare and after prepare process:
#! /usr/bin/env node
console.log("this is a node module");
When I run my prepare, I get the following error:
C:\Users\jwargo\dev\lunchmenu>cordova prepare
The system cannot find the path specified.
Hook failed with error code 1: C:\Users\jwargo\dev\lunchmenu\hooks\before_prepare\test.js
I can't find any information anywhere about what an error code of 1 means here.
I've tested the node code and it runs fine with "node test.js" and when I execute test.js from the command line Windows simply launches my default editor.
So, can anyone tell me what I'm doing wrong or what I need to do to be able to execute a node application as a hook with the Cordova CLI?
Figured it out with some help from the Cordova dev team. The space in my shebang was causing the problem. I removed it and the problem went away.

Resources