How to disable saving HTML snapshots of pages for failed tests in Codeception? - codeception

When my acceptance tests fail, I usually only need the screenshots of a page. HTML output clutters the output directory and makes it difficult to navigate to the screenshots. Is there a command line argument or a configuration option to disable HTML output completely?

Related

How to refresh Cucumber Output file in IntelliJ while using multiple feature files?

I am using the BDD framework using Cucumber,
There are multiple feature files.
But am not able to get the output in the HTML file. (However, I can see the output in my console. )
Where am going wrong? How to keep this file(CucmberExtentReport.html) updated in IntelliJ IDEA?
Screenshot of the folders:
Am getting the HTML output only on running the whole configuration from here
But I want to run a single feature file and see the output which IntelliJ is not updating...
I am running single feature by clicking run like this:

How can I format a gitlab-ci.yml file to HTML

The gitlab system has a CI file linter that allows to check gitlab-ci.yml files. It renders these files as a table with informative entries.
However, this rendering is not very robust. Does anyone know if there is a component that provides this service, I.e. a sensible HTML rendering of the CI file for documentation purposes?

safari extension injected content not loading

I have 3 scripts in the "Injected Content/End Scripts" section of my extension. Only one particular script is not being injected.
I removed all 3 scripts and injected each one individually, only a particular script is not being loaded via the injected content section while the other two load just fine.
Is there any reason why a particular script might not get injected?
I had a syntax error in that script that prevented it from being loaded by the safari extension builder.
There doesn't seem to be a way to debug syntax errors in injected scripts other than having your linter on in your editor.

Show HTML artifacts in bamboo without downloading

I've successfully created a small demo HTML report of test results from a build. Simply put, I'm doing numerical computations, and would like to give more detailed information on test results than a binary pass/fail. The HTML report consists of multiple HTML files with relative links between them.
However, linking to one file from the other sometimes leads to the file being opened in the browser, and sometimes a "download file" dialog opens. Any ideas what the rules are, so I can look at the whole report in-browser without resorting to downloading a zip file of the whole report, unzipping, etc etc?
Just a quick note here, if anyone should need it - as this was where I ended up in my search.
After upgrading our Bamboo to 6.8.1 build 60805 our code coverage artifacts started downloading, instead of being displayed inline.
This can be fixed by setting the Security and permission setting Allow artifacts to be embedded in Bamboo pages.
Be aware of the note about Cross-Site-Scripting vulnerabilities if enabled.
On our project we use this simple solution
1.In Stage configure final task script to copy reports to some folder:
echo "Copy artifact report"
rm -rf ../artifacts
mkdir ../artifacts
cp -r functionalTests/build/html/behat/* ../artifacts/
2.On Artifacts tab edit artifact definition and set Copy pattern to artifacts/**
Then when you navigate to build artifact then folder with reports will be opened in browser
To have an embedded html page in bamboo showing the coverage results, this page has partially helped me to make bamboo cooperate with python coverage:
Troubleshooting
The Clover tab shows the directory listing instead of the HTML report
Please check which artifact handler you use. The Amazon S3 Artifact
Handler serves files on a one-by-one basis, instead of exposing all
files as a static website. To change this, open Configure plan and on
the Miscellaneous tab select the Use custom artifact handler settings
check-box. Then select Server-Local Artifact Handler for shared and
non-shared artifacts and finally re-run the build.
In my setup though "Server-Local Artifact Handler" failed completely, but choosing "Bamboo remote handler" did the job.

How to run .html File from WebStorm

We do unit tests via .html files so that we can interact in a web form also. We also just run the dojo test runner.
I have been able to run the .hml file from Aptana but when I try webstorm for the first time, never tried it, love this IDE, I see that when in my .html file the run button at the top is disabled.
So how do I run an .html file that's got markup and javascript from WebStorm and have it come back and hit my debug points inside Webstorm? Does webstorm scrape in what you see in FireFox also or do you have to keep toggling back and fourth such as when you step to the next debug point, tab back to the browser to see the results...or is there a nice way in webstorm to see the markup in runtime at the same time?
All in all I am just trying to get this .html file to run that's got javascript in it and some Dojo runner, etc. in it since I'm using Dojo in this .html file.
Either just open it manually or allow debug from localhost port.
So appearnetly it's not obvious to open a file in WebStorm there is a row of icons that appear in the top right corner of the text editor pane.
You have to hold SHIFT down when clicking the supported/installed browsers icons hidden there, or it will open in the deployment's location (via FTP server settings etc).
Try ALT-F2 for Preview file in... from "View" menu.