chocovon
V2EX  ›  问与答

能否在 debug 的时候生成相应的测试用例?

  •  
  •   chocovon · Feb 7, 2021 · 1316 views
    This topic created in 1963 days ago, the information mentioned may be changed or developed.
    以 Java 为例,在 debug 的时候,运行代码所需要的值都是可以拿到的,甚至可以直接根据当前的变量运行代码片段。那么有没有什么办法能直接用这些值当作测试用例生成一套测试呢?如果能做到的话,感觉可以省下不少复现问题的时间,写测试也会方便很多吧?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5344 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 07:37 · PVG 15:37 · LAX 00:37 · JFK 03:37
    ♥ Do have faith in what you're doing.