How to convert a ".trx" file to HTML - html

I generate my tests suite with vstest.console with VS 2012 and get my test result in a .trx format file.
I want to convert this result file toHTML. I used the trx2html tool. But I get an error when I run it.
Error : System.IO.FileLoadException
trx2html.exe C:\Users...\Desktop\result.trx
How can I solve this problem?
Do other tools exist that allow converting a .trx file to html or pdf ?
One more thing, I'm using orderedtest so my trx file come from orderedtest created by VS2012

There were some issues with trx2html tool and vs2012, so I suppose you have the latest version from Codeplex (http://trx2html.codeplex.com/).
Although obviating the error, this question may be useful for you:
How do I format Visual Studio Test results file (.trx) into a more readable format?

Related

Getting Minizinc output as .txt from IDE

Imagine I ran a .mzn with .dzn and got an output in IDE as follows:
Supplier01,100,100,100,100,100,100,100,100,100,100,100,100
Supplier02,200,200,200,200,200,200,200,200,200,200,200,200
Supplier03,40,49,359,834,1067,1377,334,516,761,1001,1251,1583
Supplier04,500,500,500,500,500,500,500,500,500,500,500,500
Supplier05,161,200,200,200,200,200,200,200,200,200,200,200
Supplier06,500,500,500,500,500,500,500,500,500,500,500,500
----------
==========
Is there any way that I can generate this output in a .txt or .csv file in a preferred location on my computer? I know that we can perform this in command prompt, but is there any way we can do using the IDE it self?
The MiniZinc IDE currently does not include functionality to export solutions for other applications.
The current expectation is that if you want to integrate MiniZinc with other applications that you would use something like MiniZinc Python, iMiniZinc, or the command line tools, to facilitate the connection. In your case using MiniZinc Python or iMiniZinc might be a good solution since Python can generate csv files using the csv module. If you want to see and interact with the solution as well as outputting the csv file, then iMiniZinc can provide the right tooling in Jupyter Notebook to do both.
If you are very happy with the MiniZinc IDE and you want to continue using it, then the other option would to just minimize the inconvenience. Your output statement already provides the solution in csv style. So the only remaining part is making the file. The MiniZinc IDE can open .csv files. So my suggestion would in this case be to create an empty .csv file, open it in the IDE. Once you get the solution from your instance in the output window, then you copy directly into the file.

Here XYZ Studio issue with uploading files

It seems that the XYZ Studio has some problems with accepting files. The upload of .geojson and .csv files is recommended but it tells me i am trying to upload "unsupported file types". It still worked a few weeks ago but i cannot upload any .geojson and .csv files right now.
Kindly crosscheck the names in the header of your csv file. If the file does not have columns labelled Latitude and Longitude, the xyz studio may give you a message saying that you are trying to upload an unsupported file.
I ran into a similar issue. Turns out HERE Studio prefers comma (,) CSVs only. If modifying in excel and it gets saved as a caret (^) CSV, the uploader will only read the file as one wide column and pop out errors.
If HERE is listening, some documentation on properly formatted file types, formats, and limitations along with sample code for the .CSVs, json, shape, and GEOjson files would be immensely helpful to users of Studio as there is little in the way on the API/platform documentation.

Best tool for .json file schema validation

There are probably a lot of tools/libraries to validate JSON schemas.
I have a library and want users of my library to have configuration files that match the expected API.
Using Webstorm, the IDE will tell me that my Webpack config file schema is incorrect, something like this:
The Webpack files that are responsible are here:
https://github.com/webpack/webpack/blob/master/schemas/webpackOptionsSchema.json
Integration with existing IDEs like Webstorm, VSCode, Atom, ST3, etc, would be a huge plus.
I haven't figured out how to do this right...anybody know?
To integrate with various IDEs, consider uploading your json schema to JSON Schema Store.
Here is the GitHub Repo
https://github.com/SchemaStore/schemastore
This contains json schemas for many well known json files and gets integrated with Visual Studio and VS Code easily.
Also look at step by step integrations steps for Visual Studio
https://scottaddie.com/2016/08/02/community-driven-json-schemas-in-visual-studio-2015/

Edmx generate model file with blank lines

How can I configure the code Generation in VisualStudio 2015 using Database first to not generate extra blank lines in my model?
multiple people are working on this project and the source control system really don't like it :(
Maybe the solution could be to configure GIT to ignore white space?
see what the merge tool show me
It can be because of T4 file generator. Open with Notepad++ your emdx .tt file, go to Edit -> EOL Conversion -> Windows (CR LF).
Check this answer.

Writing a .json file and it will not work with another application

I am creating an application to work with another application called league of legends. Their itemsets in game may be locally saved json files. My application generates a json string and writes to a .json. The files do not appear in game. I am using visual studio 2015, vb.net.
The strange part is that I can use notepad++ to copy my generated file into a new file and save it. The file then appears in game with no issues. I used the opentextwriter to write the files.
Any suggestions why this happens or how to fix the issue? Thank you.
It is possible that your string is being written with a BOM. JSON strings must not start with a BOM. If you had shown the code you use to write the string, we would have been able to help you make the adjustment. Ref: JSON Specification and usage of BOM/charset-encoding. – Andrew Morton Jul 15 '16 at 16:38