The extraction of neutrino mixing parameters from accelerator-based neutrino-oscillation experiments relies on proper modeling of neutrino-nucleus scattering processes using neutrino interaction event generators. Experimental tests of these generators are difficult due to the broad range of neutrino energies produced in accelerator-based beams and the low statistics of current experiments. Here we overcome these difficulties by exploiting the similarity of neutrino and electron interactions with nuclei to test neutrino event generators using high-precision inclusive electron-scattering data. To this end, we revised the electron-scattering mode of the genie event generator (e-genie) to include electron-nucleus bremsstrahlung radiation effects and to use, when relevant, the exact same physics models and model parameters, as the standard neutrino-scattering version. We also implemented new models for quasielastic (QE) scattering and meson exchange currents (MECs) based on the theory-inspired super scaling approach SuSAv2. Comparing the new e-genie predictions with inclusive electron-scattering data, we find an overall adequate description of the data in the QE- and MEC-dominated lower energy transfer regime, especially when using the SuSAv2 models. Higher energy transfer interactions, which are dominated by resonance production, are still not well modeled by e-genie.