When I recently livestreamed on Twitch about building a chat bot to interact with people watching my “learning in public” broadcasts, I wanted to make some chat commands that would retrieve data from API endpoints-like fetching a joke, or the weather in a given location. And yes, it is named after the character in the comedy series “Seinfeld,” portrayed by actor Wayne Knight. =XXXXXXXX/.Newman is Postman’s tool that allows you to run collections of requests, and their associated scripting, from the command line. sonar.projectBaseDir=/home/vsts/work/1/s sonar.externalIssuesReportPaths=reports/spectral.json sonar.exclusions=tests/**/*,newman-reporter-sonarqube/**/* pendenc圜heck.htmlReportPath=$/reports/dependency-check/dependency-check-report.xml Vulnerability Rules for PHP 9.9 (securityphpfrontend) Configuration detection fot Code Quality and Security 1.2.0.267 (config) Vulnerability Rules for Python 9.9 (securitypythonfrontend) Vulnerability Rules for JS 9.9 (securityjsfrontend) Vulnerability Rules for Java 9.9 (securityjavafrontend) Vulnerability Rules for C# 9.9 (securitycsharpfrontend) JavaScript/TypeScript/CSS Code Quality and Security 9.9 (javascript) Dataflow Bug Detection Rules for Java 1. Dataflow Bug Detection Rules for Python 1. Python Code Quality and Security 3.8 (python) CFamily Code Quality and Security 6.6 (cpp) VB.NET Code Quality and Security 8.5 (vbnet) Text file Code Quality and Security 1.2.0.510 (text) Java Code Quality and Security 7.7 (java) C# Code Quality and Security 8.5 (csharp) Azure Active Directory (AAD) Authentication Plug-in for SonarQube 1.3.2 (authaad) Dependency-Check 3.0.1 (dependencycheck) (OWN COMPANY PLUGIN - just adds some pages) Plugin for SonarQube 9.x 1.0.0 (XXX) Tests/HD_Mobile_API.postman_collection.jsonġ7:13:26.529 INFO: Sensor Generic Test Executions Report (done) | time=16msīut, the Postman collection in JSON is an ignored file by SonarScanner, so the test results aren’t being tracked. Running SonarScanner with -debug I can see this file referenced now: 17:13:26.513 INFO: Sensor Generic Test Executions Reportġ7:13:26.514 INFO: Parsing C:\dev\apim-api-XXX\reports\sonarqube\TESTS-XXXXXX.postman_collection.xmlġ7:13:26.529 INFO: Imported test execution data for 0 filesġ7:13:26.529 INFO: Test execution data ignored for 1 unknown files, including: I also have sonar.tests=tests so that the Postman collection JSON is considered a test file. I then pointed to the output XML file using the sonar.testExecutionReportPaths property. That’s ok I thought, I’ll write an output in Sonar’s generic test data format… Which I did and it gives me this: When I run SonarScanner with -debug I see no mention of this file at all - so I can only assume it’s not being imported because there is no Java code in the repository. (ignore the failure, I intentionally modified the test to get a failure to see what that would look like) An example output looks something like this: This does not appear to import as I see no count of unit tests on the front page of the project in SonarQube. Newman can generate JUnit format output, which I have tried to import using the property. The postman collection itself is a JSON file. What is under test is an API either locally or remotely deployed based on the code in the repository. This is essentially a headless Postman instance that executes all tests in a Postman collection, and generates output in various formats. Trying to import test data output from Postman Lab’s tool: Newman.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |