简体   繁体   English

为什么参数化或理论测试被 Github 工作流忽略

[英]Why parameterized or theories tests are ignored by Github workflows

I'm running my code in GitHub workflows and all of the tests pass.我在 GitHub 工作流程中运行我的代码,并且所有测试都通过了。 But tests annotated with Theories or parameterized are ignored.但是用 Theories 注释或参数化的测试将被忽略。 Why?为什么?

This is my.yml file这是我的.yml 文件

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

I rewrite my codes in JUnit 5 with the Jupiter test.我用 Jupiter 测试重写了 JUnit 5 中的代码。 My tests were in JUnit 4. It runs in GitHub action.我的测试在 JUnit 4 中进行。它在 GitHub 动作中运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM