Run time Error while running cucumber feature file in Cypress new version 10.8 - cypress-cucumber-preprocessor

Error: Build failed with 1 error:
cypress/e2e/step_definitions/Test.js:2:0: ERROR: The JSX syntax extension is not currently enabled
cypress version - "cypress": "^10.8.0",
and
cucumber-preprocessor": "^12.2.0"

Related

2.170.1\Modules\DTAExecutionHost.exe' failed with exit code 1

I am trying to run my automation pipeline on Private hosted agent and getting error as Test Run Failed.
Error: The process 'C:\agent_work_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.170.1\Modules\DTAExecutionHost.exe' failed with exit code 1
Vstest failed with error. Check logs for failures. There might be failed tests.
Error: The process 'C:\agent_work_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\2.170.1\Modules\DTAExecutionHost.exe' failed with exit code 1 Vstest failed with error. Check logs for failures. There might be failed tests.
Based on the error message, the reason for this issue should be that the VSTest task supported .Net Framework 4.6.2 from version 2.170.1.
You need to check the .NET framework version installed on the build agent machine. If the .NET framework version installed on the machine is 4.6.1 or less than that then can you please try upgrading the .Net framework version to 4.6.2.
Here is a doc about the requirement about the Visual Studio test task:
If you're using a Windows self-hosted agent, be sure that your machine
has this prerequisite installed:
.NET Framework 4.6.2 or a later version
In addition, you can try to use the Visual Studio test task version 1.

Protractor .npm-global Error: more than one config file specified

Tried everything suggested online. But still getting the error.
protractor --version
Version 5.4.2
npm -version
6.1.0
protractor Testfiles/Conf.js —-suite cti
Error: Error: more than one config file specified
at /Users/m/.npm-global/lib/node_modules/protractor/built/cli.js:166:15
at /Users/m/.npm-global/lib/node_modules/protractor/node_modules/optimist/index.js:307:21
at Array.forEach (<anonymous>)
at parseArgs (/Users/m/.npm-global/lib/node_modules/protractor/node_modules/optimist/index.js:305:16)

Getting "No such module" error after running POD LIB LINT

I'm trying to create a POD but when I run pod lib lint or pod spec lint, I get the next output:
`XXXXXX/LoginService/LoginService.swift:10:8: error: no such module
'TwitterKit' import TwitterKit
^
** BUILD FAILED **
The following build commands failed: CompileSwift normal x86_64
XXXXXX/LoginService/LoginService.swift CompileSwiftSources normal
x86_64 com.apple.xcode.tools.swift.compiler (2 failures) ->
LoginService (0.1.0)
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- ERROR | [iOS] xcodebuild: /Users/danielfernandez/Documents/tekton_projects/LoginService/LoginService/LoginService.swift:10:8:
error: no such module 'TwitterKit'`
I don't know why, because If I build my project there is no errors, I'm using the TwitterKit without any problem.
This is my first time trying to create a pod. I used cocoapods to install Twitter Kit and my Xcode Version is 8.3.3
This is my POD SPEC:
If I put the s.dependency, I get this error: The 'Pods-App' target has transitive dependencies that include static binaries
If I use --use-libraries I get this error: Pods written in Swift can only be integrated as frameworks; add use_frameworks!
This is my Podfile:

Cordova build: Command failed with exit code 8

I am building a phone gap (Cordova 3.5) app for android and trying to implement facebook login. I have installed the facebook plugin then i was getting errors in connectPlugin.java file then i imported the facebook SDK library in my project. All errors showing in eclipse are gone now but when i am trying to run 'cordova build' the build fails with the following error.
BUILD FAILED
D:\android-tool\sdk\tools\ant\build.xml:653: The following error occu
executing this line:
D:\android-tool\sdk\tools\ant\build.xml:698: null returned: 1
Total time: 12 seconds
D:\xampp\htdocs\android-app\refund_app\platforms\android\cordova\node
q.js:126
throw e;
^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,D:\xampp\
oid-app\refund_app\platforms\android\build.xml,-Dout.dir=ant-build,-D
e.dir=ant-gen
Error: D:\xampp\htdocs\android-app\refund_app\platforms\android\cordo
t: Command failed with exit code 8
at ChildProcess.whenDone (C:\Users\USER\AppData\Roaming\npm\node_
dova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:756:16)
at Process.ChildProcess._handle.onexit (child_process.js:823:5)
I solved this problem by myself actually the build was failing due to a invalid directory in facebook SDK
Mypath/facebook-android-sdk-3.23.0\facebook\bin\res\crunch
I cut all the contents from the 'crunch' folder and pasted it under 'res' folder then deleted the 'crunch' folder. Then cordova build started working.

Sonar 4.5.1 with HTML Issues Report plugin 1.0 error

I've recently installed Sonar 4.5.1 with Sonar Runner 2.4, Issue report plugin 1.0.
It reports error when running the analysis:
ERROR: Error during Sonar runner execution
ERROR: Unable to execute Sonar
ERROR: Caused by: Fail to generate HTML Issues Report to: /home/.sonar/issues-report.html
ERROR: Caused by: ruleStatus.getRule().getId() is undefined.
ERROR:
ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.
ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.
Build step 'Invoke Standalone Sonar Analysis' marked build as failure
Can anyone help?
Thanks in advance,
Upgrading to Issue report plugin 1.3 solved the problem.