-
Updated
May 12, 2022 - JavaScript
unit-testing
Here are 4,433 public repositories matching this topic...
-
Updated
Jan 14, 2022 - JavaScript
-
Updated
May 15, 2022 - Python
-
Updated
May 7, 2022 - Go
-
Updated
May 15, 2022 - Python
-
Updated
May 14, 2022 - PHP
-
Updated
May 9, 2022 - JavaScript
-
Updated
May 14, 2022 - C++
Currently, when comparing strings, options like ignoreLineEndingDifferences
and ignoreWhiteSpaceDifferences
require there be at least one instance of the various characters
// Succeeds
Assert.Equal(" ", " ", ignoreWhiteSpaceDifferences: true);
// Fails
Assert.Equal(" ", String.Empty, ignoreWhiteSpaceDifferences: true);
... I'm looking for a way to compare two s
-
Updated
Oct 27, 2018 - Go
-
Updated
Apr 8, 2022 - JavaScript
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
@testing-library/user-event | [^13.5.0 -> ^14.0.0 ](https://renovatebot.com/diffs/npm/@testing-library%2fuser-event/1 |
Description
Nested AssertionScopes only report the outer-most scope reportables on failure. This is true regardless of whether the outer scope has any reportables -- i.e., if only the inner scope has reportables, nothing is reported.
Complete minimal example reproducing the issue
[TestMethod]
public void TestNestedAssertionScopes()
{
using (var outerScope = new A
-
Updated
May 9, 2022 - JavaScript
-
Updated
May 9, 2022 - Go
-
Updated
May 10, 2022 - Java
-
Updated
Feb 16, 2022 - Scala
-
Updated
Mar 7, 2022 - C#
Add singular form of the following:
getErrors() -> getError()
getWarnings() -> getWarning()
The idea is to return the first error/warning of a field, instead of an array.
Unlike getErrors/getWarnings that can either take 0 or 1 arguments, getError/getWarning must receive a field name.
Function signature:
function getError(fieldName: string): string;
function getWarning(fieldNam
-
Updated
Nov 17, 2021
If you want to contribute android projects to awesome-android-kotlin-apps, Pull Requests are welcomed!
If you are a beginner looking for your first contribution to Open Source, I will help you with Pull Request and contributing guide.
Feel free to send Pull Requests, fix typos, grammatical mistakes ...
-
Updated
Jan 21, 2022 - Swift
Rubberduck version information
The info below can be copy-paste-completed from the first lines of Rubberduck's log or the About box:
Rubberduck version [Version 2.5.2.6030
OS: Microsoft Windows NT 10.0.22000.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.14701.20226
Host Executable: WINWORD.EXE
Description
Language inspection for assignment of LCase suggests usi
I'm mocking a protocol with a function that looks like this:
func foo(
completion: @escaping (
_ bar: Int,
_ baz: Int,
_ qux: Int
) -> Void
)
The generated mocks do not properly remove the line breaks before attempting to put it into a single-line string literal, resulting in the errors Unterminated string literal
, `Consecutive statement
-
Updated
Apr 28, 2022 - C
-
Updated
Apr 14, 2022 - PHP
-
Updated
Mar 1, 2022 - JavaScript
-
Updated
Sep 16, 2020 - JavaScript
Improve this page
Add a description, image, and links to the unit-testing topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the unit-testing topic, visit your repo's landing page and select "manage topics."
Is your feature request related to a problem? Please describe.
If you want to use
sinon
withmocha
, you shouldn't forget torestore
the sinon sandbox after each test. This is documented here in general setup.Since version 7.2, mocha supports root hooks. It is a way to export mocha root hooks (
beforeEach
,afterEach
etc) fr