3

devs. I am writing the e2e tests for my smart contracts using ink_e2e In contracts, I define the e2e-tests like this.

#[openbrush::contract]
pub mod controller {
    ...
    
    #[cfg(all(test, feature = "e2e-tests"))]
    mod e2e_tests {
    }
}

But I want to define tests like this.

#[cfg(all(test, feature = "e2e-tests"))]
mod e2e_tests {}

#[openbrush::contract]
pub mod controller {
    ...
}

In this case, I have noticed that e2e-tests feature is disabled. Anybody met this issue and solved it?

2
  • May be if you can follow this PR in order to resolve this.
    – Ganesh11
    Jun 30 at 8:03
  • Thanks for your comment. But It is still disabled. code is inactive due to #[cfg] directives: feature = "e2e-tests" is disabled
    – Wolf
    Jun 30 at 14:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.