Kin'blog

喜欢coding。喜欢大海。


  • Home

  • Archives

  • Brief

  • Tags

  • About

敏捷武器库

Posted on May 6 2018 |

敏捷,熟悉而陌生。每当说到敏捷时,很多的知识点都会从大脑的武器库里涌现出来:

Agile、Scrum、XP、Kanban、RAID、TDD、Use Stories、Continuous Integration、Continuous Delivery、Pair Programming、Burndown Chart、Refactor、Cycle Time、Waste、IPM、Retrospectives、MVP、Test....

面对这么多的散落在大脑中知识点,这么多武器,该如何管理?面对不同的场景,该拿出哪种武器来应对?该如何合理裁剪敏捷实践到项目中?

Read more »

Do You Really Need @DirtiesContext?

Posted on Apr 2 2018 |

测试又随机挂了,该怎么办?加上 @DirtiesContext 试试。真棒,修好了。

WAIT! WAIT! WAIT! 为什么加 @DirtiesContext 就修好,有没有什么副作用?

@DirtiesContext is a spring test annotation which is used to indicate that the application context cached should be removed and reloaded after each test run. The application context removed will also be closed.

Read more »

Think Twice Before Using @MockBean

Posted on Mar 25 2018 |

号外!号外!号外!你的 spring boot integration tests 运行慢吗,是不是每跑一次测试,你都在等待,等待它全绿的那一瞬间。如果你遇到,那请接着往下看,也许可以帮助到你。如果你没有遇到,那也请往下看,因为也许以后你会遇到。

告诉你一个秘密:@MockBean会导致测试类(Test Class)之间spring boot application context不断启动多次!!!

Read more »
1234…15
aikin

aikin

45 posts
60 tags
RSS
GitHub Segmentfault
© 2019 aikin
Powered by Hexo
Theme - NexT.Mist