Running Jasmine on a Jenkins CI server [duplicate] - ruby-on-rails

This question already has an answer here:
How to run Jasmine tests in TeamCity
(1 answer)
Closed 8 years ago.
I would like to run jasmine, for our Ruby on Rails client side, on a Jenkins CI server machine using rake jasmine:ci. Ideally, I would like it not to use any browser, alternatively if I try to run it with firefox v21 installed, it fails to get connection (I believe this is a known issue).
So to sum my short questions:
Is there a stable way to run it without invoking a browser?
Does anyone know if the firefox issue has been resolved?
I believe JASMINE_BROWSER can control which browser will be used, however I've failed to find instructions what are its legal values.

Have you thought about using phantomjs? It would allow you to not invoke a browser. Looks like this guard-phantomjs-jasmine on Github has the ability to work with jasmine. The documentation has a usecase for CI. Hope that helps!

Related

turbo confirm with rails 7.0.3 not working on Github Codespaces?

There are already answers on how to make the confirm button works with DELETE in Rails 7 as Rails 7 now prefer Hotwired Stimulus than Turbo. They are answered here: How to call confirm prompt using button_to in Rails with Turbo. The accepted answer works as far as Rails 7.0.2.3, whereas the newest Rails 7.0.3.1 also have an answer below (which isn't an accepted answer).
However, even after trying this, it doesn't work in Github Codespaces. What's the issue?
That has to do with Github Codespaces localhost. In fact, sometimes Github Codespaces localhost cannot run hotwire stimulus. You can try with the example here: https://stimulus.hotwired.dev/ on your computer, or rent a VM anywhere (Amazon Cloud9, Azure VM, GCP VM, etc) and check that the program can run; then try to run that "for sure it can run" program that uses stimulus controller on Github codespaces and see if it runs or not.
In my experience, sometimes it runs, other times it doesn't run. So, that has nothing to do with your program but Github Codespaces. Prefer to move to another VM and check that it works fine.

Chrome browserless Selenium on bamboo

I've developed a framework which runs selenium tests with no problem on my local computer.
I also have developed a pipeline on Bamboo to execute those tests. It does, problem is I have no chrome browser installed on bamboo and I get the error saying "There is no chrome binary" obviously. There is no chance to install anything on bamboo, so I need to run these tests with no browser (also headless).
I've checked this: https://github.com/browserless/chrome
Sounds good to what I want to achieve but I don't know how to do it.
Do I need to run docker by command and then point my driver to the port or what?
Can anyone shed some light? I pretty lost and there are not much examples (or I don't know how to find them)
Thanks!!

Jenkins TFS plugin fails behind proxy

I have been trying for sometime to get the TFS plugin working, and have had "semi" success.
The parts of the process that use Team Explorer command line client work well (I have defined the TFSPROXY environment variable, which seems to work.)
As soon as the plugin gets to the piece that uses the SDK, I get a stack trace printed, with the main error:
com.microsoft.tfs.core.exceptions.TECoreException: Unknown host somehost.on.corporate.network.
I have tried using the environment variables: HTTP_PROXY, and TFSPROXY. I have also tried adding the registry keys at HKLM/Software/MS/VisualStudio/10.0/TeamFoundation/SourceControl/Proxy (also added v9.0).
My question is: Is there any way to configure proxy settings for the SDK that the plugin is using, or has someone else had success with another alternative?
For anyone else who may be having this issue, I found that it is only the latest versions of the plugin using the SDK (3.0+), and the previous versions (2.0 and less) are using only the command line tool.
So as a workaround, I have downgraded to 2.0 and everything seems to be working correctly now.

How to start a grails webtest without starting the grails application?

I am working with the webtest plugin as functional test component for grails.
It works fine, but is very slow - the whole application has poor response times (>1min per page) when under test. My feeling is that this is because the app, canoo webtest and the IDE (netbeans) are running in one JVM when I start my test through the IDE (test-app functional:)
So my goal is now to deploy the app to a stand-alone tomcat and run my tests against this tomcat instance.
I googled and found an old option -nostart for webtest which seem to be outdated.
So I googled some more and found the -baseUrl=http://... option in the current documentation. The docs say that with this option, the app will not be started and all tests will run against this baseUrl. But when I give it a try, grails still tries to start up jetty (at least, I get an error message saying that the port 8080 is already in use).
Any ideas? I am already thinking about using webtest stand-alone, but I like the groovy syntax of the plugin...
I'm using grails 1.3.4
You could try interactive mode as mentioned here: Can I run grails integration & functional tests against a running server?
If the -baseUrl option isn't working then I'd raise a JIRA issue.
cheers
Lee

How do I Remote Debug with RubyMine?

I have my RubyMine client running on my Windows machine and my development console and server running on a local Ubuntu VmWare because of problems running several of the gems on windows.
There's suppose to be an option to use RubyMine's Remote debugging to support such a setup. But I seem to have trouble running it.
I tried to follow these guides -
http://blogs.jetbrains.com/ruby/2009/05/ruby-remote-debug/
http://www.jetbrains.com/ruby/webhelp/remote-debugging.html
But I can't seem to get it working, did anyone ever got a setup like this working?
Could you please describe the steps what you did exactly at RubyMine's official support forum?
Here it is: http://devnet.jetbrains.net/community/ruby?view=discussions&start=0
Regards,
Oleg

Resources