Replies: 3 comments
-
|
Hey did you find a solution for this? |
Beta Was this translation helpful? Give feedback.
-
|
You might want to check out https://github.com/elixir-wallaby/web_driver_client instead. Wallaby is a testing library, which uses web_driver_client in some spaces. You can use web_driver_client without any test modules getting in the way. |
Beta Was this translation helpful? Give feedback.
-
|
I forked the repository and added check which fixes this issue. My fork is here: https://github.com/svelterust/wallaby The change consists of adding if-statement around the ExUnit loading code if |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Wallaby in a production environment to automate filling of a 3rd party web form. It's not ideal, but we needed a solution even while we're working with the 3rd party on an API based integration.
We are deploying to production with releases built by
mix releaseand this doesn't includeExUnitby default which we would like to keep that way. However Wallaby is trying to ensure that the:ex_unitapplication is started and attempts to create anExUnit.after_suite/1hook inWallaby.SessionStore. This fails currently in a release becauseExUnitis not bundled in it.I didn't see a way to disable ExUnit integration but I think that would be a useful option for similar use cases. There are several ways this could be achieved:
Wallaby.SessionStoreby making it conditional bases onfunction_exported?(ExUnit, :after_suite, 1)Wallaby.SessionStoreI think option 2 would make the most sense in the current state of the project. Option 3 would be overkill for just this use case while the configuration based approach of option 1 is likely unnecessary for that single place of integration that is causing the issue. It's unlikely anyone would use
Wallaby.Featurein a production setting where most of the ExUnit integration exists.Beta Was this translation helpful? Give feedback.
All reactions