Skip to content
#

assertions

Here are 370 public repositories matching this topic...

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

oxygenecore
oxygenecore commented Jan 27, 2021

https://github.com/assertj/assertj-core/blob/f27b022a369ba731ed72413f6c10c82a9e539495/src/main/java/org/assertj/core/internal/Maps.java#L745
The call mentioned in the link fails with IllegalArgumentException if entries is empty, and actual is not. This, however, would work if actual is empty as well (the mentioned line is not executed in this case). Thus, execution success depends on `actua

sduong1207
sduong1207 commented Jan 27, 2021

why steps in zerocode-junit-interactive-fuzzy-search.html report are not displayed in order as they are in the json scenarios file
For example:
My scenarios in json file, I defined below steps:

{
  "scenarioName": "Add Clusters: GIVEN- environment variables endpoint, WHEN- I invoke POST request, I will be able to add/update cluster for my environment",
  "ignoreStepFailures": false,
  "
atrium
robstoll
robstoll commented Jan 2, 2021

Platform (all, jvm, js): all
Extension (none, kotlin 1.3): none

Code related feature

expect(path).toBeAnEmptyDirectory()

//instead of

expect(path)
  .toBeADirectory()
  .feature("findFirstFile", { Files.list(this).use { it.findFirst() } }) {
    isEmpty()
  }

Following the things you need to do:

logic

  • extend PathAssertions with a function `toBeEmptyDi
alexjeffburke
alexjeffburke commented Dec 7, 2019

Normally, the "to be truthy" assertion does not take any value as it simply asserts that a subject can be coerced to a boolean true (in the case of "to be falsy" it is coercion to boolean false).

It seems that early on these assertions inherited an optional form where a custom message can be supplied as their argument - this was likely inspired by earlier assertions frameworks (assert on node

Improve this page

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

Learn more