githubjunityamlworkflowparameterized

Why parameterized or theories tests are ignored by Github workflows


I'm running my code in GitHub workflows and all of the tests pass. But tests annotated with Theories or parameterized are ignored. Why?

This is my .yml file

name: Java CI with Maven

on:
  push:
    branches: [ "ca#5" ]

jobs:
  build:

    runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
  uses: actions/setup-java@v3
  with:
    java-version: '17'
    distribution: 'temurin'
    cache: maven
- name: Build with Maven
  run: mvn -B package --file pom.xml  

- name: Run tests with Maven
  run: mvn -B test --file pom.xml

Solution

  • I rewrite my codes in JUnit 5 with the Jupiter test. My tests were in JUnit 4. It runs in GitHub action.