Skip to content
#

unittest

Here are 875 public repositories matching this topic...

IGx89
IGx89 commented Mar 7, 2020

Hello! The documentation appears to indicate that Format can be specified on the command line for the VSTest integration (see https://github.com/tonerdo/coverlet/blob/master/Documentation/VSTestIntegration.md#coverlet-options-supported-by-vstest-integration), but it provides no examples on how to do so and I've had zero luck figuring it out myself. Assuming that is indeed possible, would someone b

Martinspire
Martinspire commented Mar 26, 2020

So I'm trying to set up my project with Jest/Spectator as it seems like a very neat way to develop tests but I'm running into issues with the dependencies for my components and services. And getting them mocked entirely isn't the main issue, changing their behavior to do different things is the main issue.

Say I have a service, that returns something, in my current tests that always seems to be

flask后端开发接口示例,利用Flask开发后端API接口。包含基本的项目配置、统一响应、MySQL和Redis数据库操作、定时任务、图片生成、项目部署、用户权限认证、报表输出、无限层级生成目录树、阿里云手机验证码验证、微信授权、Celery、单元测试、Drone等模块。

  • Updated Apr 6, 2020
  • Python
shawnbrown
shawnbrown commented Apr 14, 2019

Add how-to documentation for inequalities.

Should demonstrate:

  • using validate.interval() to create left- and right-bounded intervals (for greater-than-or-equal-to and less-than-or-equal-to)
  • using functions for implementing greater-than or less than (but not equal-to)
  • and maybe interval disjunction (e.g. a combined x < min or max < x)
pgrangelgo
pgrangelgo commented Nov 29, 2018

When using quotes inside here doc in the context of fake, the quote will disappear from the output of the faked function. This is different from what is expected from using here doc.

Here is an exemple:

test_should_succeed_but_will_fail() {
  fake toto <<EOF
"test"
EOF

  assert 'toto | grep \"' 'should have found quote but seems like fake swallowed it'
}

test_will_succee
abathur
abathur commented Apr 10, 2018

I'm not sure if I've stumbled into a real issue, or just fallen into a documentation hole.

I had a bear of a time getting travis-ci set up this time. When I use run_tests --coverage, I get a timeout waiting for ST3 to respond. When I use run_tests without coverage, they run fine. The raw logs for both runs show the bootstrap installing sublime-coverage:

...
Running command: bootstrap 

Improve this page

Add a description, image, and links to the unittest topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the unittest topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.