Cookie Consent by Free Privacy Policy Generator ๐Ÿ“Œ actions-hottest๐Ÿš€: GitHub Actions for Commenting on Golang Unit Test Results in Pull Requests

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š actions-hottest๐Ÿš€: GitHub Actions for Commenting on Golang Unit Test Results in Pull Requests


๐Ÿ’ก Newskategorie: Programmierung
๐Ÿ”— Quelle: dev.to

Make the test results more user-friendly

I previously introduced a feature in the go-spectest/spectest, which extracts error messages from Golang unit test results.

I have now separated that functionality into the nao1215/hottest command.

The 'hottest' command can use the same options as 'go test':

demo

hottest on GitHub Actions

Many people run unit tests using GitHub Actions. Therefore, I created nao1215/actions-hottest to make it easy to execute 'hottest' in GitHub Actions.

Here is an example workflow for running unit tests using 'hottest':

name: SampleTest

on:
  push:

jobs:
  sample_test:
    name: sample test

    strategy:
      matrix:
        platform: [ubuntu-latest]

    runs-on: ${{ matrix.platform }}

    steps:
      - uses: actions/checkout@v4

      - uses: actions/setup-go@v4
        with:
          go-version: "1"
          check-latest: true

      - uses: nao1215/actions-hottest@v1
        with:
          # This argument is same as `go test` command.
          args: '-cover -coverpkg=./... -coverprofile=coverage.out ./...'

Here are the logs for when the unit tests succeed and when they fail:

  • when all test pass
    all-test-pass

  • when some test fails
    test-fail

Comments Test Results in Pull Request

I find it inconvenient to check the workflow logs when tests fail. Therefore, I have decided to have 'hottest' leave the test results as comments in the Pull Request.

Here are the comments for when the unit tests succeed and when they fail:

  • when all test pass
    all-test-pass

  • when some test fails
    test-fail

Conclusion

'hottest' is a command that extracts error messages from failed unit tests. You can easily adopt GitHub Actions. Its usage is similar to 'go test,' and there is no need to rewrite the test code.

lease do give 'hottest' a try!! Additionally, your support in the form of a GitHub star would be encouraging for further development.

...



๐Ÿ“Œ GitHub Security Lab: Golang : Improvements to Golang SSRF query


๐Ÿ“ˆ 34.88 Punkte

๐Ÿ“Œ GitHub fรผhrt Reaktionen auf Pull Requests, Issues und Kommentare ein


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ GitHub fรผhrt Reaktionen auf Pull Requests, Issues und Kommentare ein


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ GitHub Pull Requests for VS Code


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ Introducing GitHub Pull Requests for Visual Studio Code


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ Git your patches here! GitHub offers to brew automatic pull requests loaded with vuln fixes


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ Introducing GitHub Pull Requests for Visual Studio Code


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ GitHub Mobile 1.2 รผberarbeitet den Review-Prozess bei Pull Requests


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ Mit GitHub Enterprise Server 2.21 Pull Requests in Drafts umwandeln


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ Visual Studio Code 1.51 setzt Arbeit an GitHub Pull Requests and Issues fort


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ Visual Studio Code 1.51 setzt Arbeit an GitHub Pull Requests and Issues fort


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ GitHub rolls out dependency review, vulnerability alerts for pull requests


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ GitHub Security Lab: 3,880 Pull Requests Generated to fix JHipster RNG Vulnerability CVE-2019-16303


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ Microsoft GitHub Pull Requests and Issues Extension on Visual Studio Remote Code Execution


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ GitHub fรผr iOS: Pull-Requests lassen sich jetzt auch schnell mobil bearbeiten


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ GitHub Desktop 3.2 bietet lokale Vorschau fรผr Pull Requests


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ GitHub Desktop 3.2: Vorschau fรผr deine Pull Requests


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ The power of GitHub Copilot Chat for pull requests (PART 2)


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ The power of GitHub Copilot Chat for pull requests (PART 1)


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ Unveiling CodiumAI PR-Agent: A Comparative Analysis Against GitHub Copilot for Pull Requests


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ AI-Powered Pull Requests: CodiumAI vs GitHub Copilot


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ Brave browser AI assistant Leo can now generate summaries for GitHub pull requests


๐Ÿ“ˆ 34.37 Punkte

๐Ÿ“Œ [GitHub Actions] How to Automatically Run npm Update and Create a Pull Request


๐Ÿ“ˆ 32.43 Punkte

๐Ÿ“Œ [GitHub Actions] How to Automatically Run npm Update and Create a Pull Request


๐Ÿ“ˆ 32.43 Punkte

๐Ÿ“Œ Deploying a Vite app on GitHub Pages using GitHub Actions with GitHub Secrets


๐Ÿ“ˆ 32.38 Punkte

๐Ÿ“Œ Running Unit Tests with GitHub Actions (10 of 12) | Automated Software Testing


๐Ÿ“ˆ 30.46 Punkte

๐Ÿ“Œ Applying Unit Tests on NestJS with Jest and GitHub Actions


๐Ÿ“ˆ 30.46 Punkte

๐Ÿ“Œ Actions Project - Actions Builder & Actions SDK


๐Ÿ“ˆ 30.35 Punkte

๐Ÿ“Œ Conversational Actions overview - Actions Builder & Actions SDK


๐Ÿ“ˆ 30.35 Punkte

๐Ÿ“Œ How to Test a GitHub Action with GitHub Actions


๐Ÿ“ˆ 28.64 Punkte

๐Ÿ“Œ Bonus Tip: How to Use GitHub Actions to Test a GitHub Action Whose Output Must be Visually Inspected


๐Ÿ“ˆ 28.64 Punkte

๐Ÿ“Œ Gitea is working on a built-in CI/CD tool called Gitea Actions (compatible with GitHub Actions syntax)


๐Ÿ“ˆ 27.65 Punkte

๐Ÿ“Œ How to use GoLang in Flutter Application - Golang FFI


๐Ÿ“ˆ 27.46 Punkte

๐Ÿ“Œ GoLang JWT Authentication Using Golang Gin Framework with MongoDB


๐Ÿ“ˆ 27.46 Punkte

๐Ÿ“Œ Pull Requests Are Accepted At About The Same Rate, Regardless of Gender


๐Ÿ“ˆ 26.94 Punkte











matomo