Actually, happy path tests aren't an antipattern.
实际上,愉快路径测试并不是一个反模式。
But how do you test the happy path case for push?
但是,如何测试push的愉快路径呢?
This is often referred to as the "basic path" or "happy path."
这通常被看作是“基本路径”或者“快乐路径”。
The antipattern is when the developer stops at happy path tests.
反模式是指在进行愉快路径测试时开发程序的停止行为。
Usually, when you write code, you write it with the happy path in mind.
编写代码时,通常考虑使用愉快路径进行编写。
Happy path tests validate the expected behavior of the system under test.
愉快路径测试可以验证被测系统的行为是否为所期望的行为。
In Figure 2, the basic flow, or happy path, goes straight through the diagram.
在图2中,这个基本流程,或者快乐路径,径直穿过这个图。
In a functional test, the happy path is the same — or close to — the use case.
在功能测试中,愉快路径与实际用例相同或相近。
Don't just test the happy path; test boundary conditions and out-of-domain values.
不要仅测试愉快路径,还要测试边界条件和范围之外的值。
Happy path tests don't test the parts of the system most likely to fail (the sad paths).
愉快路径不测试系统的错误部分(不愉快路径)。
In the "happy path" scenario we are discussing, the RentalLocation replies "yes" (OK).
在我们讨论过的“happy path ”场景中,RentalLocation回答“是”(OK)。
This helped streamline the "happy path" that you wanted users to follow from search to purchase.
这有助于改进从搜索到购买的用户操作流程。
Start with the happy path, the basic course of action — but don't forget the alternate courses as well.
如果一切顺利,使用的将是基本行动过程——但也不要忘记备选过程。
I wish I had a picture to show you how convoluted it was, especially if you deviated from the 'happy path'.
我希望我有张图片来告诉你过去它是多么令人费解,尤其是当你偏离了“幸福路径”的时候。
If mottos are more your style, feel free to mentally repeat yours as often as needed to keep you on your happy path.
如果格言更符合你的风格,请自由地因需要而在心里重复你的格言,使自己始终走在快乐的路径上。
The first problem is that the “happy path” does not cross boundaries very well: the key barrier is the barrier of intention.
第一个困难是“幸福之路”并不能很好地跨越边界:主要的障碍来自于利益不同。
If you are committed to a spiritual path in your life, you are twice as likely to say you are "very happy," according to psychology research.
根据心理学研究,如果你在生命中,踏上一条灵性之路,你说“非常幸福”的可能性是(常人)的两倍。
But I like to think that whether I had chosen acting, music, or dance, I would have somehow or other always chosen a path that in the end would make me feel happy and fulfilled.
不过我觉得,无论当初我是选择了成为一名演员、还是歌手抑或是舞者,我最终都会选择一条给我带来快乐和满足感的道路。
Most women are bored with, and cynical about, the well-trodden path of romantic fiction. They do not like happy endings and would rather read a thriller or crime novel.
大多数的女性读者早已厌倦了写法老套的言情小说,她们不再喜欢言情小说的圆满结局,而更情愿看一本恐怖或者犯罪小说。
How much MORE time should you set aside to figure out the path that will make you happy?
需要多少时间留下来考虑将会使你感到愉快的方法?
In many processing scenarios, this information is just as important as the data returned during a "happy-path" invocation.
在很多处理方案中,此信息与成功调用期间返回的数据一样重要。
As long as you lead a happy and comfortable life, why bother to chase after other people's shadows? Choose your own life path and go for it.
只要你过着快乐而舒适的生活,为什么要徒添烦恼去追逐别人的影子呢?选择你自己的道路并坚持走下去吧!
So, the spirit of loving-kindness, compassion, wisdom, and insight is about paving a path, building Bridges, and erecting homes and through this, our hearts are very happy and at peace.
所以,这个大慈、大悲、大智、大慧,就是铺路造桥、盖房屋,让我们的心就是,很安稳,很快乐,这都是我们人生。
Soon the path was clear. Dan was happy.
很快,路径是干净的。丹很开心。
Leading the procession: a small girl strewing blossoms along the road, so the bride's path through life will always be happy and laden with flowers.
队伍最前面的小女孩沿路撒花,预示新娘的人生也会一路幸福、鲜花遍地。
When they see that we are happy with our lives and the path we are taking to reach our goals, they can rest assured that all we need them to do is to share in our joy.
当他们看到我们对自己的生活很是满意的,并且我们走上了我们自己选择的目标的旅程,他们可以放心,所需要他们去做的事就是分享我们的喜悦。
Project yourself into the future, to a moment where you are happy and calm, and then work backward, figuring out what happens along the path to serenity.
畅想一下未来,你是多么得开心和平静。然后再开始工作,看看在通往平静的路上到底会发生什么。
Project yourself into the future, to a moment where you are happy and calm, and then work backward, figuring out what happens along the path to serenity.
畅想一下未来,你是多么得开心和平静。然后再开始工作,看看在通往平静的路上到底会发生什么。
应用推荐