Main Feature
JS: new Detox configuration format with basic support for switching between multiple apps (@noomorph, via #2587).
In a nutshell, instead of requiring configuration "monoliths" we now allow for the deconstruction and reconstruction of the Detox configuration into its various building blocks:
- Devices configuration
- Application configuration
- Reconstruction into actual configurations using references to the above entities
Conceptual template:
{
// ...
"detox": {
// ...
"devices" {
// ... see the docs ...
},
"apps": {
// ... see the docs ...
},
"configurations": {
"ios.sim.debug": {
"device": "simulator",
"app": "ios.debug"
},
"android.emu.release": {
"device": "emulator",
"app": "android.release"
},
"android.att.release": {
"device": "android.attached",
"app": "android.release"
},
"android.genymotion.release": {
"device": "android.genycloud",
"app": "android.release"
}
}
}
}
Important: On top of just syntax-boosting, this more flexible form of configuring Detox now also opens the door to running more than one application throughout the test suite, using the new device.selectApp()
API that accompanies this change. See migration notes for complete info.