a33291
V2EX  ›  问与答

maven 有插件/配置可以使其只运行代码变更影响的测试吗?

  •  
  •   a33291 · Jan 4 · 1051 views
    This topic created in 170 days ago, the information mentioned may be changed or developed.
    或者精确发现所有影响到的单元测试比较麻烦的话,也可以以项目为单位,只要某个项目代码发生变更就运行也可以


    注: 依赖关系可能比较难以处理

    目前 cicd 浪费大量时间运行完全无变化的单测,浪费时间
    2 replies    2026-01-05 11:31:35 +08:00
    guyeu
        1
    guyeu  
       Jan 4   ❤️ 1
    关键字:continuous testing

    FYI gradle 更适合干这个事情。
    a33291
        2
    a33291  
    OP
       Jan 5
    @guyeu 现有项目是 maven 的,不太能变
    使用场景主要是 CICD 里,不确定这个持续测试能不能在这个模式下工作,我先看看,感谢
    之前已经找过一圈,没有太好的办法
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2579 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 15:52 · PVG 23:52 · LAX 08:52 · JFK 11:52
    ♥ Do have faith in what you're doing.