You can take it a step further and also work up the fretboard in one sustained direction ascending and then go back down the fretboard without stopping. Do this with a backing track and try quarters first then eighths etc. Then once you feel comfortable you can start composing your own lines and hit target notes in your runs - hope that helps!
Also just realized that you can do groupings of notes through the octaves and that can get you on your way to creating longer runs fast. Take the first two strings of any scale and learn them starting on each octave and that can give the motion of a long run that you don't have to think of a ton of notes.
Regards