Skip to content
#

mocking

Here are 605 public repositories matching this topic...

maald
maald commented Apr 24, 2020

As a new end user, I cannot find a single user guide or decent documentation. The javadoc reads like it's written as a quick review for someone who already knows the ins/outs of Mockito and just need some sample code. I don't even know what or how Mockito works and the first couple of lines are talking about "mockito inline".

Most open source projects have really great user guides and document

mikehaertl
mikehaertl commented Oct 30, 2019

When learning how to use mocker I came across this paragraph on this page:

When creating a test double object, we can pass in an identifier as a name for our test double. If we pass it no identifier, the test double name will be unknown. Furthermore, the identifier must not be a class name. It i

nohwnd
nohwnd commented Jul 2, 2019

It would be nice to start building Pester on PowerShell 7 as well to see if it is compatible and keep it that way. To achieve that we need to research on which build servers v7 is already available. Right now we are building on TravisCI (Linux and MacOS), on AppVeyor (PowerShell 4+) and AzureDevOps (PowerShell 2&3).

Not sure if the build task needs to run on all three platforms, but it would be

mogronalol
mogronalol commented Oct 7, 2017

When there is no match, the response body will contain useful debugging information such as what matcher came the closest and which specific criteria it did not match on.

The problem is that we can also get the false positive scenario, where we are expecting a particular match to take place but a different one does instead.

We propose an explain functionality along the lines of `hoverctl

bbyars
bbyars commented Feb 19, 2018

Several pages of the docs are in need of an update. Includes the following:

  • Adding the system daemon docs from the README to the site
  • Updating or removing the examples page
  • Updating the client libraries, including potentially adding a github organization
  • Updating the support iframe
  • Updating the glossary to the mental model map from manning
  • Validating the contracts page is up to
AnthonyMillerSF
AnthonyMillerSF commented Apr 16, 2020

I have a library that I generate all of my mocks into that is imported in my unit tests. When mocking a protocol, the generated mock object doesn't have an initializer declared. This means is uses the default initializer, which would be fine, except the default init() method is internal. I can get around this by importing my mock library @testable, but I'd suggest that protocol mocks for publi

prism
lehphyro
lehphyro commented Apr 10, 2020

User story.
As a developer, I can change a referenced example file, so that I can see the changes after a request to prism.

Is your feature request related to a problem?
Prism only watches the spec file for changes and even if it changes, it doesn't reload referenced examples. This is useful because spec files can get extremely big so $ref usage is a must to keep it manageable.

joncalhoun
joncalhoun commented Mar 11, 2019

This probably doesn't affect many people, and it isn't super important, but let's say you create a package with a name that is the same as a package it uses. Eg I might make github.com/xxx/myapp/http and inside of it use the net/http package.

package http

//go:generate moq -pkg http_test -out thing_moq_test.go . Thing

type Thing interface {
  Blah(w http.ResponseWriter, r *htt
mbrukman
mbrukman commented Feb 18, 2019

Right now, [README.md][readme] includes copy-pasted code from sample code in [src/example/][src/example] tree, but they're not kept in-sync automatically.

Ideally, we would have a process for automatically including code samples, e.g., via some preprocessing since it's probably not possible to do it dynamically, so that we can avoid having to see them diverge, e.g., as can be seen in issue

Improve this page

Add a description, image, and links to the mocking 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 mocking topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.