Quick / Nimble

A Matcher Framework for Swift and Objective-C
https://quick.github.io/Nimble/documentation/nimble/
Apache License 2.0
4.8k stars 596 forks source link

Quick 7.3.0 and Nimble 13.0.0 ERROR : "Instance member 'testVariablesNotNil' cannot be used on type 'ConditionSelectionTests'" #1099

Closed sagaguptadeloitte closed 9 months ago

sagaguptadeloitte commented 9 months ago
Screenshot 2023-11-08 at 3 54 07 PM

I am using Quick 7.3.0 and Nimble 13.0.0 getting error "Instance member 'testVariablesNotNil' cannot be used on type 'ConditionSelectionTests'"

It worked for old version 5.0.1

Environment

List the software versions you're using:

Please also mention which package manager you used and its version. Delete the other package managers in this list:

Project that demonstrates the issue

We can not share project Please link to a project we can download that reproduces the issue. Feel free to delete this section if it's not relevant to the issue (eg - feature request).

The project should be short, self-contained, and correct example.

younata commented 9 months ago

Quick 7 made spec a class method, not an instance method. This means that instance methods/properties can no longer be accessed in quick specs.

From Quick 7's release notes:

Migrating Suggestions

[...] If you have any test helpers that exist as properties or methods of your QuickSpec subclasses, the you will need to either move them inside of the spec function, or outside to another scope.

This is expected behavior. My apologies for the migration frustration.